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

Default to mini #183

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/openui/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ async def get_openai_models():
try:
await openai.models.list()
# We only support 3.5 and 4 for now
return ["gpt-3.5-turbo", "gpt-4o", "gpt-4-turbo"]
return ["gpt-3.5-turbo", "gpt-4o-mini", "gpt-4o", "gpt-4-turbo"]
except Exception:
logger.warning("Couldn't connect to OpenAI at %s", config.OPENAI_BASE_URL)
return []
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/api/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ emoji: 🎉
if (image) {
// TODO: configurable
if (model.startsWith('gpt')) {
model = 'gpt-4o'
model = 'gpt-4o-mini'
}
const textImageRequirements = query
? `The following are some special requirements: \n ${query}`
Expand Down Expand Up @@ -156,7 +156,7 @@ emoji: 🎉
if (image) {
// TODO: configurable
if (model.startsWith('gpt')) {
model = 'gpt-4o'
model = 'gpt-4o-mini'
}
messages.push({
role: 'user',
Expand Down
Loading