openai[small]: Add the new model: gpt-4o-mini (#24594)

This commit is contained in:
Philippe PRADOS 2024-07-24 15:14:48 +02:00 committed by GitHub
parent 597be7d501
commit 5f73c836a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -537,6 +537,7 @@ class BaseOpenAI(BaseLLM):
max_tokens = openai.modelname_to_contextsize("gpt-3.5-turbo-instruct")
"""
model_token_mapping = {
"gpt-4o-mini": 128_000,
"gpt-4o": 128_000,
"gpt-4o-2024-05-13": 128_000,
"gpt-4": 8192,