Merge branch 'main' into hosted

This commit is contained in:
Abi Raja 2024-03-19 10:31:12 -04:00
commit 7edbe16325

View File

@ -36,7 +36,12 @@ async def stream_openai_response(
model = Llm.GPT_4_VISION
# Base parameters
params = {"model": model, "messages": messages, "stream": True, "timeout": 600}
params = {
"model": model.value,
"messages": messages,
"stream": True,
"timeout": 600,
}
# Add 'max_tokens' only if the model is a GPT4 vision model
if model == Llm.GPT_4_VISION: