Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from GPT 3.5 to GPT4o #417

Open
mjerk opened this issue Sep 10, 2024 · 1 comment
Open

from GPT 3.5 to GPT4o #417

mjerk opened this issue Sep 10, 2024 · 1 comment

Comments

@mjerk
Copy link

mjerk commented Sep 10, 2024

Is it possible to switch the model from gpt 3.5 to 4o?

@katresars
Copy link

https://platform.openai.com/docs/overview

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"}
]
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants