You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{cells:[{kind:2,language:'typescript',value:'let openAiApiKey = import.meta.env.VITE_OPENAI_API_KEY;\n\nimport OpenAI from "openai";\nconst openai = new OpenAI({ apiKey: openAiApiKey});\n\nimport tools from \'./tools\';\nimport {conversation} from \'./conversation\';\n\nconst messages = [\n { role: "user", content: "What\'s the weather like in San Francisco, Tokyo, and Paris in fahrenheit?" },\n];\n\nconst result = await conversation(openai,messages,tools);\n\nVitale.markdown(result[0].message.content);',metadata:{id:'AvDnMnmezNyE5_1JsfV7a'}}]}