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

What is the name of the model that uses "GPT-4o mini"? #121

Open
r2nochi opened this issue Oct 4, 2024 · 6 comments
Open

What is the name of the model that uses "GPT-4o mini"? #121

r2nochi opened this issue Oct 4, 2024 · 6 comments

Comments

@r2nochi
Copy link

r2nochi commented Oct 4, 2024

Hi, your project is very good. I need your help in what is the name of the model in your package that uses the "GPT-4o mini" model, since that model is cheaper than "GPT-3.5 Turbo".
It would be great if you could make a list of available models of the package and which one of the open ai models it matches.

model: Gpt4ChatModel()
model: Gpt41106PreviewChatModel()

image

@rocboronat
Copy link

I'm exactly looking for that.

In constants.dart there's this list, but no model seems like GPT-4o mini.

const kChatGptTurboModel = 'gpt-3.5-turbo'; // gpt 3.5
const kChatGptTurbo0301Model = 'gpt-3.5-turbo-0301';
const kChatGpt4 = 'gpt-4';
const kChatGpt40314 = 'gpt-4-0314';
const kChatGpt432k = 'gpt-4-32k';
const kChatGpt432k0314 = 'gpt-4-32k-0314';
const kChatGptTurbo0613 = 'gpt-3.5-turbo-0613';
const kChatGptTurbo1106 = 'gpt-3.5-turbo-1106';
const kChatGptTurbo16k0613 = 'gpt-3.5-turbo-16k-0613';
const kChatGpt40631 = 'gpt-4-0613';
const kGpt41106Preview = 'gpt-4-1106-preview';
const kGpt4VisionPreview = 'gpt-4-vision-preview';

@redevrx
Copy link
Owner

redevrx commented Oct 24, 2024

@r2nochi @rocboronat you can using ChatModelFromValue('model-name')

@rocboronat
Copy link

Great! Thanks a lot, @redevrx ! 🙇

@rocboronat
Copy link

We still need to know what's the name of the model that uses GPT-4o mini...

@redevrx
Copy link
Owner

redevrx commented Nov 6, 2024 via email

@rocboronat
Copy link

Oh, just an update! The name is gpt-4o-mini and in this project version 3.0.7, it can be used as ChatModelFromValue(model: 'gpt-4o-mini').

A more complete example would be:

final request = ChatCompleteText(
  messages: [
    {"role": "system", "content": system},
    {"role": "user", "content": prompt},
  ],
  maxToken: 1000,
  model: ChatModelFromValue(model: 'gpt-4o-mini'),
);

I think with this we can close this issue ✅

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

3 participants