Activity
Mon
Wed
Fri
Sun
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
What is this?
Less
More

Memberships

Data Alchemy

37.7k members • Free

AI Developer Accelerator

11.2k members • Free

2 contributions to AI Developer Accelerator
Claude3 API help requested (javascript)
Hey Team I really need some coding help. Specifically does anyone know how to use fetchURL to call the Anthropic API ?? I have this code (below) that I use in a Google Apps/Ads Script for OpenAI & would love to be able to offer users the option of using Claude3 (& Gemini) instead of just OpenAI The 'app' such that it is, is a Google Sheet that has a tab for settings & the output (the script runs inside a google ads account - but doesn't actually pull data from that account - it pulls it from another sheet in the settings) I'm really just using google ads as my environment to run the code! I wanted to show marketers how easy it can be to put these AI building blocks together! @Brandon Hancock actually maybe that's a YT idea for you??? To create API calls from inside a google apps script, so people can call these models using spreadsheets (which they're more familiar with)?? Any help very happily received! Thanks Mike PS - posting screenshot of settings tab as it's the closest thing to an 'app' I have! ----- Code: (existing OpenAI API call inside a function) function generateTextOpenAI(prompt, data, apiKey, model) { Logger.log('Generating report with OpenAI'); let url = 'https://api.openai.com/v1/chat/completions'; let messages = [ { "role": "user", "content": prompt } ]; let payload = { "model": model, "messages": messages }; let httpOptions = { "method": "POST", "muteHttpExceptions": true, "contentType": "application/json", "headers": { "Authorization": 'Bearer ' + apiKey }, 'payload': JSON.stringify(payload) }; let response = UrlFetchApp.fetch(url, httpOptions); let startTime = Date.now(); while (response.getResponseCode() !== 200 && Date.now() - startTime < 30000) { Utilities.sleep(5000); response = UrlFetchApp.fetch(url, httpOptions); Logger.log('Time elapsed: ' + (Date.now() - startTime) / 1000 + ' seconds');
Claude3 API help requested (javascript)
0 likes • Mar '24
@Brandon Hancock thanks for that. the problem is I'm trying to do it all from inside a google ads script so I can't use import Anthropic from '@anthropic-ai/sdk'; !
0 likes • Mar '24
@Brandon Hancock which video? :)
🚀 Welcome to AI Developer Accelerator (Start Here)
👋 Hey there! Ready to supercharge your dev skills with AI? You're in the right place. Watch the intro video below for a walkthrough of our community and a peek at our AI-enhanced future. 🛠 CLASSROOMS: - Full Stack Development with AI: Where code meets cognition. Sharpen your skills and build AI-- powered apps. - CrewAI: Your squad for all things AI. Share ideas, collaborate on projects, and celebrate successes together. - Code Bugs & Project Issues: Debug like a pro. Get help on tricky bugs and offer your wisdom to others. - Monetize Your AI Dev Skills: From AI code to income: Collaborate, innovate, and monetize your dev skills! - YouTube Tutorial Requests: Please let me know what you want to learn more about when it comes to Fullstack Developement and AI. 📜 RULES: - Promotions are a no-no. Let's keep the focus on learning and growing. - We appreciate quality contributions. Enhance your posts with visuals and use ChatGPT for refining your content. - No talking about politics or religion. Go to X if you want to talk about that. - See something off? Help us maintain the community spirit by reporting any issues to me. 🥇 FIRST STEP: Introduce yourself with a post about your AI journey and what you're working on in the General Discussion group. **Bonus points for sharing a screenshot of your current app!** 🎯 ACTIONS: Be proactive, engage in discussions, and collaborate on group projects. 👩‍💻👨‍💻 Let's code, innovate, and thrive together!
13 likes • Mar '24
Hey Team - thanks @Brandon Hancock for putting this together. I was a Google Ads guy for ~20 years. Sold my agency last year to go deep into AI. Might setup another business around it, not sure yet. For now I'm on a mission to take people 'From Ads to AI' & make the digital marketing community to realise how important AI is for their agencies & their clients! The first step has been to run some workshops to teach basic coding (& thinking like a coder!) using Google Ads scripts as my gateway drug to get people interested :)
1-2 of 2
Mike Rhodes
2
5points to level up
@mike-rhodes-2218
data nerd. ex-agency owner. know a bit about google ads

Active 156d ago
Joined Mar 5, 2024
Powered by