feat(agent): persist production generation settings
This commit is contained in:
@@ -494,7 +494,7 @@ def _agent_system_prompt() -> str:
|
||||
|
||||
|
||||
def _max_output_tokens(model: ModelConfig) -> int:
|
||||
configured = max(1, model.max_token or 1024)
|
||||
configured = max(1, model.max_token or 8192)
|
||||
if not model.context_window:
|
||||
return configured
|
||||
return min(configured, max(1, model.context_window // 3))
|
||||
|
||||
Reference in New Issue
Block a user