Skip to content

feat: add GPT-4o mini support#2001

Open
KushalLukhi wants to merge 1 commit intomckaywrigley:mainfrom
KushalLukhi:feat/add-gpt-4o-mini
Open

feat: add GPT-4o mini support#2001
KushalLukhi wants to merge 1 commit intomckaywrigley:mainfrom
KushalLukhi:feat/add-gpt-4o-mini

Conversation

@KushalLukhi
Copy link

Description

Adds support for OpenAI's GPT-4o mini model, released July 18, 2024.

Changes

  • Added GPT-4o mini to OpenAI model list in lib/models/llm/openai-llm-list.ts
  • Model ID: gpt-4o-mini
  • Supports image input
  • Pricing: /bin/bash.15/1M input tokens, /bin/bash.60/1M output tokens

Benefits

GPT-4o mini provides a significantly more cost-effective alternative to GPT-3.5 Turbo:

  • ~3x cheaper than GPT-3.5 Turbo (/bin/bash.15 vs /bin/bash.50 per 1M input)
  • Comparable or better performance on many tasks
  • Vision capabilities included at no extra cost
  • Larger 128K context window

Related Issues

Partially addresses #1948 (request for prototyping without login/expense)

Ready for review!

Add OpenAI's GPT-4o mini model with pricing:
- Input: $0.15 per 1M tokens
- Output: $0.60 per 1M tokens

GPT-4o mini is significantly cheaper than GPT-3.5 Turbo
while offering comparable or better performance.

Closes mckaywrigley#1948 (partial - enables prototyping without high costs)
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

Successfully merging this pull request may close these issues.

1 participant