fix: compliant with gpt-5 models

This commit is contained in:
Per Stark
2025-10-01 10:17:31 +02:00
parent 945a2b7f37
commit 022f4d8575
7 changed files with 19 additions and 27 deletions
@@ -334,12 +334,10 @@ async fn vision_markdown(
let request = CreateChatCompletionRequestArgs::default()
.model(settings.image_processing_model.clone())
.temperature(0.0)
.messages([ChatCompletionRequestUserMessageArgs::default()
.content(content_parts)
.build()?
.into()])
.max_tokens(16400_u32)
.build()?;
let response = client.chat().create(request).await?;