Increase OpenRouter max_tokens to 5000

Update .github/workflows/release.yml to raise the OpenRouter request max_tokens from 1500 to 5000. This allows the model to generate longer responses during the release workflow; be aware this may increase token usage and cost.
This commit is contained in:
手瓜一十雪
2026-02-13 18:01:36 +08:00
parent cad567dc3f
commit c91e1378cf

View File

@@ -396,7 +396,7 @@ jobs:
--arg system "$SYSTEM_PROMPT" \ --arg system "$SYSTEM_PROMPT" \
--arg user "$USER_CONTENT" \ --arg user "$USER_CONTENT" \
--arg model "$OPENROUTER_MODEL" \ --arg model "$OPENROUTER_MODEL" \
'{model: $model, messages:[{role:"system", content:$system},{role:"user", content:$user}], temperature:0.2, max_tokens:1500}') '{model: $model, messages:[{role:"system", content:$system},{role:"user", content:$user}], temperature:0.2, max_tokens:5000}')
echo "=== OpenRouter request body ===" echo "=== OpenRouter request body ==="
echo "$BODY" | jq . echo "$BODY" | jq .