-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat(wren-ai-service): add support for new GPT-5 models in configuration files (ai-env-changed) #1875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(wren-ai-service): add support for new GPT-5 models in configuration files (ai-env-changed) #1875
Changes from 1 commit
ab7edec
a450d66
648d089
39d83f7
02b6f74
0720398
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,7 +24,25 @@ models: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| n: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seed: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| temperature: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - model: gpt-5-nano-2025-08-07 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| context_window_size: 1000000 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kwargs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max_tokens: 4096 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| n: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seed: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - model: gpt-5-mini-2025-08-07 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| context_window_size: 1000000 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kwargs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max_tokens: 4096 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| n: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seed: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - model: gpt-5-2025-08-07 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| context_window_size: 1000000 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| kwargs: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| max_tokens: 4096 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| n: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seed: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - model: gpt-5-nano-2025-08-07 | |
| context_window_size: 1000000 | |
| kwargs: | |
| max_tokens: 4096 | |
| n: 1 | |
| seed: 0 | |
| - model: gpt-5-mini-2025-08-07 | |
| context_window_size: 1000000 | |
| kwargs: | |
| max_tokens: 4096 | |
| n: 1 | |
| seed: 0 | |
| - model: gpt-5-2025-08-07 | |
| context_window_size: 1000000 | |
| kwargs: | |
| max_tokens: 4096 | |
| n: 1 | |
| seed: 0 | |
| - model: gpt-5-nano-2025-08-07 | |
| context_window_size: 1000000 | |
| kwargs: | |
| max_tokens: 4096 | |
| n: 1 | |
| seed: 0 | |
| temperature: 0 | |
| - model: gpt-5-mini-2025-08-07 | |
| context_window_size: 1000000 | |
| kwargs: | |
| max_tokens: 4096 | |
| n: 1 | |
| seed: 0 | |
| temperature: 0 | |
| - model: gpt-5-2025-08-07 | |
| context_window_size: 1000000 | |
| kwargs: | |
| max_tokens: 4096 | |
| n: 1 | |
| seed: 0 | |
| temperature: 0 | |
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 45-45: trailing spaces
(trailing-spaces)
🤖 Prompt for AI Agents
In docker/config.example.yaml between lines 27 and 45, the new GPT-5 model
entries lack the temperature setting, causing non-deterministic outputs due to
the default temperature of ~1.0. To fix this, add the line "temperature: 0"
under each GPT-5 model's kwargs section to ensure deterministic responses
consistent with the existing GPT-4.1 entries.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,24 @@ models: | |
| n: 1 | ||
| seed: 0 | ||
| temperature: 0 | ||
| - model: gpt-5-nano-2025-08-07 | ||
| context_window_size: 1000000 | ||
| kwargs: | ||
| max_tokens: 4096 | ||
| n: 1 | ||
| seed: 0 | ||
| - model: gpt-5-mini-2025-08-07 | ||
| context_window_size: 1000000 | ||
| kwargs: | ||
| max_tokens: 4096 | ||
| n: 1 | ||
| seed: 0 | ||
| - model: gpt-5-2025-08-07 | ||
| context_window_size: 1000000 | ||
| kwargs: | ||
| max_tokens: 4096 | ||
| n: 1 | ||
| seed: 0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainInconsistent defaults & missing Also, note that only the GPT-4.1-nano row has 🏁 Script executed: #!/bin/bash
set -e
# Locate all config.example.yaml files
echo "Config files in repo:"
fd --type f config.example.yaml
echo
# Show GPT-4.1 entries in wren-ai-service config
echo "=== GPT-4.1 entries in wren-ai-service/tools/config/config.example.yaml ==="
rg -n "model: gpt-4.1" -A5 wren-ai-service/tools/config/config.example.yaml
echo
# Show alias lines in wren-ai-service config
echo "=== alias entries in wren-ai-service/tools/config/config.example.yaml ==="
rg -n "alias:" -A2 wren-ai-service/tools/config/config.example.yaml || echo "No alias found"
echo
# Show temperature settings in wren-ai-service config
echo "=== temperature occurrences in wren-ai-service/tools/config/config.example.yaml ==="
rg -n "temperature" -n wren-ai-service/tools/config/config.example.yaml || echo "No temperature settings found"
echo
# Show GPT-5 entries in wren-ai-service config (for context)
echo "=== GPT-5 entries in wren-ai-service/tools/config/config.example.yaml ==="
rg -n "model: gpt-5" -A4 wren-ai-service/tools/config/config.example.yaml
echo
# Locate docker config example file
DOCKER_CFG=$(fd -g "docker/config.example.yaml")
echo "docker config file: $DOCKER_CFG"
echo
# Preview first 50 lines of docker/config.example.yaml
head -n 50 "$DOCKER_CFG"Length of output: 2373 🏁 Script executed: #!/bin/bash
set -e
echo "=== First 50 lines of docker/config.example.yaml ==="
head -n 50 docker/config.example.yaml || { echo "Failed to read docker/config.example.yaml"; exit 1; }Length of output: 1145 Ensure consistent
If there’s an intentional reason to drop these defaults (e.g., a new default 🤖 Prompt for AI Agents |
||
|
|
||
| --- | ||
| type: embedder | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Add
temperatureto keep generation behaviour consistentAll existing GPT-4.1 entries explicitly set
temperature: 0insidekwargs.Omitting it for the three new GPT-5 variants means the provider will fall back to its own default (often ≈ 0.7), changing determinism and potentially breaking tests that assume zero-temperature generation.
kwargs: max_tokens: 4096 n: 1 seed: 0 + temperature: 0Please confirm whether non-zero temperature is intended; if not, the above patch aligns behaviour with the existing models.
🏁 Script executed:
Length of output: 1516
Add explicit
temperature: 0to new GPT-5 entries for deterministic behaviorThe existing GPT-4.1 variants all include
but the new GPT-5 models omit
temperature, causing the provider to fall back to its default (≈0.7). To keep generation behavior consistent and tests from breaking, please add:@@ deployment/kustomizations/base/cm.yaml kwargs: max_tokens: 4096 n: 1 seed: 0 + temperature: 0Applies to lines 78–90.
🤖 Prompt for AI Agents