openai/openai-realtime-console

import OpenAI from "openai"; const openai = new OpenAI(); const completion = await openai.chat.completions.create({ model: "gpt-4o", messages: [ {"role": "user", "content": "write a haiku about ai"} ] });

Closed this issue · 0 comments

import OpenAI from "openai"; const openai = new OpenAI(); const completion = await openai.chat.completions.create({ model: "gpt-4o", messages: [ {"role": "user", "content": "write a haiku about ai"} ] });