fix: Update default model name to 'grok-4-1-fast-reasoning' in xAI Chat Completions API

This commit is contained in:
bsiggel
2026-03-14 08:39:50 +00:00
parent 4a5065aea4
commit c032e24d7a
3 changed files with 50 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ async def handler(request: ApiRequest, ctx: FlowContext[Any]) -> ApiResponse:
)
# Extract parameters
model_name = body.get('model', 'grok-2-latest')
model_name = body.get('model', 'grok-4-1-fast-reasoning')
messages = body.get('messages', [])
temperature = body.get('temperature', 0.7)
max_tokens = body.get('max_tokens')