mirror of
https://github.com/block/goose.git
synced 2026-10-19 01:27:15 +00:00
fix: session naming/"none" reasoning effort fails for gpt-6.1-sol (#12605)
Some checks failed
Unused Dependencies / machete (push) Has been cancelled
Live Provider Tests / check-fork (push) Has been cancelled
Canary / Prepare Version (push) Has been cancelled
Canary / Upload Install Script (push) Has been cancelled
CI / changes (push) Has been cancelled
CI / Build Rust Project on Windows (push) Has been cancelled
CI / Check GDK Release Configuration (push) Has been cancelled
CI / Check GDK API Reference is Up-to-Date (push) Has been cancelled
Prepare GDK release / Create or update GDK release PR (push) Has been cancelled
MCP Conformance / Build Conformance Binaries (push) Has been cancelled
Create Minor Release PR / check-version-bump-pr (push) Has been cancelled
Publish Docker Image / docker (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Canary / bundle-macos-arm64 (push) Has been cancelled
Canary / bundle-macos-x64 (push) Has been cancelled
Canary / bundle-windows (push) Has been cancelled
Canary / bundle-windows-cuda (push) Has been cancelled
Canary / build-cli-linux (push) Has been cancelled
Canary / Release (push) Has been cancelled
CI / goose ACP npm packages (push) Has been cancelled
CI / Check Rust Code Format (push) Has been cancelled
CI / Build and Test Rust Project (push) Has been cancelled
CI / Build Lean ACP Binary (push) Has been cancelled
CI / Check and Test GDK Agent Crates on wasm32 (push) Has been cancelled
CI / Check goose-sdk UniFFI (push) Has been cancelled
CI / Test Kotlin GDK package (push) Has been cancelled
CI / Build and Test TLS Backend (native-tls) (push) Has been cancelled
CI / Build and Test TLS Backend (rustls-tls) (push) Has been cancelled
CI / Build and Test Roaming Feature (push) Has been cancelled
CI / Check MSRV (push) Has been cancelled
CI / Lint Rust Code (push) Has been cancelled
CI / Check Generated Schemas are Up-to-Date (push) Has been cancelled
CI / Test and Lint Electron Desktop App (push) Has been cancelled
CI / Test Desktop Updater Install (ubuntu-latest) (push) Has been cancelled
CI / Test Desktop Updater Install (windows-latest) (push) Has been cancelled
MCP Conformance / Conformance 2025-11-25 / 0.1.16 (push) Has been cancelled
MCP Conformance / Conformance 2025-11-25 / 0.2.0-alpha.10 (push) Has been cancelled
MCP Conformance / Conformance 2026-07-28 / 0.2.0-alpha.10 (push) Has been cancelled
Create Minor Release PR / release (push) Has been cancelled
Live Provider Tests / changes (push) Has been cancelled
Live Provider Tests / Build Binary (push) Has been cancelled
Live Provider Tests / Smoke Tests (push) Has been cancelled
Live Provider Tests / Smoke Tests (Code Execution) (push) Has been cancelled
Live Provider Tests / Compaction Tests (push) Has been cancelled
Some checks failed
Unused Dependencies / machete (push) Has been cancelled
Live Provider Tests / check-fork (push) Has been cancelled
Canary / Prepare Version (push) Has been cancelled
Canary / Upload Install Script (push) Has been cancelled
CI / changes (push) Has been cancelled
CI / Build Rust Project on Windows (push) Has been cancelled
CI / Check GDK Release Configuration (push) Has been cancelled
CI / Check GDK API Reference is Up-to-Date (push) Has been cancelled
Prepare GDK release / Create or update GDK release PR (push) Has been cancelled
MCP Conformance / Build Conformance Binaries (push) Has been cancelled
Create Minor Release PR / check-version-bump-pr (push) Has been cancelled
Publish Docker Image / docker (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Canary / bundle-macos-arm64 (push) Has been cancelled
Canary / bundle-macos-x64 (push) Has been cancelled
Canary / bundle-windows (push) Has been cancelled
Canary / bundle-windows-cuda (push) Has been cancelled
Canary / build-cli-linux (push) Has been cancelled
Canary / Release (push) Has been cancelled
CI / goose ACP npm packages (push) Has been cancelled
CI / Check Rust Code Format (push) Has been cancelled
CI / Build and Test Rust Project (push) Has been cancelled
CI / Build Lean ACP Binary (push) Has been cancelled
CI / Check and Test GDK Agent Crates on wasm32 (push) Has been cancelled
CI / Check goose-sdk UniFFI (push) Has been cancelled
CI / Test Kotlin GDK package (push) Has been cancelled
CI / Build and Test TLS Backend (native-tls) (push) Has been cancelled
CI / Build and Test TLS Backend (rustls-tls) (push) Has been cancelled
CI / Build and Test Roaming Feature (push) Has been cancelled
CI / Check MSRV (push) Has been cancelled
CI / Lint Rust Code (push) Has been cancelled
CI / Check Generated Schemas are Up-to-Date (push) Has been cancelled
CI / Test and Lint Electron Desktop App (push) Has been cancelled
CI / Test Desktop Updater Install (ubuntu-latest) (push) Has been cancelled
CI / Test Desktop Updater Install (windows-latest) (push) Has been cancelled
MCP Conformance / Conformance 2025-11-25 / 0.1.16 (push) Has been cancelled
MCP Conformance / Conformance 2025-11-25 / 0.2.0-alpha.10 (push) Has been cancelled
MCP Conformance / Conformance 2026-07-28 / 0.2.0-alpha.10 (push) Has been cancelled
Create Minor Release PR / release (push) Has been cancelled
Live Provider Tests / changes (push) Has been cancelled
Live Provider Tests / Build Binary (push) Has been cancelled
Live Provider Tests / Smoke Tests (push) Has been cancelled
Live Provider Tests / Smoke Tests (Code Execution) (push) Has been cancelled
Live Provider Tests / Compaction Tests (push) Has been cancelled
This commit is contained in:
parent
5850d4a18c
commit
bab8ff6410
3 changed files with 2221 additions and 652 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -283,7 +283,7 @@
|
|||
"env": [
|
||||
"BASETEN_API_KEY"
|
||||
],
|
||||
"model_count": 23
|
||||
"model_count": 24
|
||||
},
|
||||
{
|
||||
"id": "bee",
|
||||
|
|
@ -416,7 +416,7 @@
|
|||
"env": [
|
||||
"CORTECS_API_KEY"
|
||||
],
|
||||
"model_count": 109
|
||||
"model_count": 110
|
||||
},
|
||||
{
|
||||
"id": "crof",
|
||||
|
|
@ -438,7 +438,7 @@
|
|||
"env": [
|
||||
"CROSSMODEL_API_KEY"
|
||||
],
|
||||
"model_count": 66
|
||||
"model_count": 67
|
||||
},
|
||||
{
|
||||
"id": "crusoe",
|
||||
|
|
@ -549,7 +549,7 @@
|
|||
"env": [
|
||||
"EDENAI_API_KEY"
|
||||
],
|
||||
"model_count": 283
|
||||
"model_count": 286
|
||||
},
|
||||
{
|
||||
"id": "empiriolabs",
|
||||
|
|
@ -637,7 +637,7 @@
|
|||
"env": [
|
||||
"GITHUB_TOKEN"
|
||||
],
|
||||
"model_count": 32
|
||||
"model_count": 34
|
||||
},
|
||||
{
|
||||
"id": "gmicloud",
|
||||
|
|
@ -880,7 +880,7 @@
|
|||
"env": [
|
||||
"KILO_API_KEY"
|
||||
],
|
||||
"model_count": 392
|
||||
"model_count": 394
|
||||
},
|
||||
{
|
||||
"id": "kimi-code-plan-cn",
|
||||
|
|
@ -957,7 +957,7 @@
|
|||
"env": [
|
||||
"LLMGATEWAY_API_KEY"
|
||||
],
|
||||
"model_count": 213
|
||||
"model_count": 214
|
||||
},
|
||||
{
|
||||
"id": "llmgateway-providers",
|
||||
|
|
@ -968,7 +968,7 @@
|
|||
"env": [
|
||||
"LLMGATEWAY_API_KEY"
|
||||
],
|
||||
"model_count": 441
|
||||
"model_count": 432
|
||||
},
|
||||
{
|
||||
"id": "llmtech",
|
||||
|
|
@ -1243,7 +1243,7 @@
|
|||
"env": [
|
||||
"NANO_GPT_API_KEY"
|
||||
],
|
||||
"model_count": 602
|
||||
"model_count": 600
|
||||
},
|
||||
{
|
||||
"id": "nearai",
|
||||
|
|
@ -1354,7 +1354,7 @@
|
|||
"env": [
|
||||
"OFOX_API_KEY"
|
||||
],
|
||||
"model_count": 149
|
||||
"model_count": 150
|
||||
},
|
||||
{
|
||||
"id": "ollama-cloud",
|
||||
|
|
@ -1376,7 +1376,7 @@
|
|||
"env": [
|
||||
"OPENCODE_API_KEY"
|
||||
],
|
||||
"model_count": 113
|
||||
"model_count": 114
|
||||
},
|
||||
{
|
||||
"id": "opencode-go",
|
||||
|
|
@ -1475,7 +1475,7 @@
|
|||
"env": [
|
||||
"PIONEER_API_KEY"
|
||||
],
|
||||
"model_count": 114
|
||||
"model_count": 116
|
||||
},
|
||||
{
|
||||
"id": "poe",
|
||||
|
|
@ -1553,7 +1553,7 @@
|
|||
"env": [
|
||||
"REQUESTY_API_KEY"
|
||||
],
|
||||
"model_count": 161
|
||||
"model_count": 165
|
||||
},
|
||||
{
|
||||
"id": "routing-run",
|
||||
|
|
@ -1608,7 +1608,7 @@
|
|||
"env": [
|
||||
"SCALEWAY_API_KEY"
|
||||
],
|
||||
"model_count": 15
|
||||
"model_count": 16
|
||||
},
|
||||
{
|
||||
"id": "scnet-token-plan",
|
||||
|
|
@ -1767,14 +1767,14 @@
|
|||
},
|
||||
{
|
||||
"id": "tempr",
|
||||
"display_name": "Tempr",
|
||||
"display_name": "Tempr Gateway",
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"api": "https://api.temprhq.io/v1",
|
||||
"doc": "https://temprhq.io/docs/gateway-reference.html",
|
||||
"env": [
|
||||
"TEMPR_API_KEY"
|
||||
],
|
||||
"model_count": 57
|
||||
"model_count": 82
|
||||
},
|
||||
{
|
||||
"id": "tencent-coding-plan",
|
||||
|
|
|
|||
|
|
@ -1928,8 +1928,16 @@ pub(crate) fn openai_reasoning_efforts_for_model(model_name: &str) -> &'static [
|
|||
if normalized.contains("-pro") || normalized.contains("/pro") {
|
||||
&["high"]
|
||||
} else if normalized.contains("gpt-6") {
|
||||
// GPT-6 Astra does not accept `none`; Sol and Luna do.
|
||||
if normalized.contains("astra") {
|
||||
// GPT-6 Astra and GPT-6.1 Sol require reasoning; GPT-6 Sol and Luna may disable it.
|
||||
let is_gpt_6_1_sol = normalized
|
||||
.match_indices("gpt-6.1-sol")
|
||||
.any(|(index, name)| {
|
||||
let (prefix, rest) = normalized.split_at(index);
|
||||
let (_, suffix) = rest.split_at(name.len());
|
||||
(prefix.is_empty() || prefix.ends_with(['/', '.', '-']))
|
||||
&& (suffix.is_empty() || suffix.starts_with(['-', '@']))
|
||||
});
|
||||
if normalized.contains("astra") || is_gpt_6_1_sol {
|
||||
&["low", "medium", "high", "xhigh", "max"]
|
||||
} else {
|
||||
&["none", "low", "medium", "high", "xhigh", "max"]
|
||||
|
|
@ -3431,6 +3439,13 @@ mod tests {
|
|||
"gpt-6-astra",
|
||||
"data_workflow_tools.goose.goose-gpt-6-astra",
|
||||
"openrouter/openai/gpt-6-astra",
|
||||
"gpt-6.1-sol",
|
||||
"gpt-6.1-sol-high",
|
||||
"data_workflow_tools.goose.goose-gpt-6.1-sol",
|
||||
"openrouter/openai/gpt-6.1-sol",
|
||||
"gpt-6.1-sol@eu",
|
||||
"openai/gpt-6.1-sol-fast",
|
||||
"openai/gpt-6.1-sol-fast-high",
|
||||
] {
|
||||
assert_eq!(
|
||||
openai_reasoning_effort_for_thinking(model, ThinkingEffort::Off),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue