Update sample configs for OpenAI (gpt-5) to specify max_completion_tokens, not max_response_tokens
Fixup for b43f61f5ff
This commit is contained in:
@@ -79,10 +79,10 @@ agents:
|
|||||||
# model_id: gpt-5
|
# model_id: gpt-5
|
||||||
# prompt: "You are a brief, but helpful bot called {{ baibot_name }} powered by the {{ baibot_model_id }} model. The date/time of this conversation's start is: {{ baibot_conversation_start_time_utc }}."
|
# prompt: "You are a brief, but helpful bot called {{ baibot_name }} powered by the {{ baibot_model_id }} model. The date/time of this conversation's start is: {{ baibot_conversation_start_time_utc }}."
|
||||||
# temperature: 1.0
|
# temperature: 1.0
|
||||||
# max_response_tokens: 16384
|
# max_response_tokens: ~
|
||||||
# # Reasoning models need to use `max_completion_tokens` instead of `max_response_tokens`.
|
# # Reasoning models need to use `max_completion_tokens` instead of `max_response_tokens`.
|
||||||
# max_completion_tokens: ~
|
# max_completion_tokens: 128000
|
||||||
# max_context_tokens: 128000
|
# max_context_tokens: 400000
|
||||||
# speech_to_text:
|
# speech_to_text:
|
||||||
# model_id: whisper-1
|
# model_id: whisper-1
|
||||||
# text_to_speech:
|
# text_to_speech:
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ impl Default for TextGenerationConfig {
|
|||||||
model_id: default_text_model_id(),
|
model_id: default_text_model_id(),
|
||||||
prompt: Some(default_prompt().to_owned()),
|
prompt: Some(default_prompt().to_owned()),
|
||||||
temperature: super::super::default_temperature(),
|
temperature: super::super::default_temperature(),
|
||||||
max_response_tokens: Some(16_384),
|
max_response_tokens: None,
|
||||||
max_completion_tokens: None,
|
max_completion_tokens: Some(128_000),
|
||||||
max_context_tokens: 128_000,
|
max_context_tokens: 400_000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user