From 8db08ad20ffd7f4eb48e17d50c01900098d30fca Mon Sep 17 00:00:00 2001 From: ctbaum Date: Sun, 6 Sep 2026 12:57:33 +0200 Subject: [PATCH 1/2] fix: enable raw mode for GPT-6 models --- internal/plugins/ai/openai/openai.go | 1 + internal/plugins/ai/openai/openai_test.go | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/internal/plugins/ai/openai/openai.go b/internal/plugins/ai/openai/openai.go index fc0b868c..1c487eea 100644 --- a/internal/plugins/ai/openai/openai.go +++ b/internal/plugins/ai/openai/openai.go @@ -223,6 +223,7 @@ func (o *Client) NeedsRawMode(modelName string) bool { openaiModelsPrefixes := []string{ "glm", "gpt-5", + "gpt-6", "o1", "o3", "o4", diff --git a/internal/plugins/ai/openai/openai_test.go b/internal/plugins/ai/openai/openai_test.go index 245cda34..fc676c62 100644 --- a/internal/plugins/ai/openai/openai_test.go +++ b/internal/plugins/ai/openai/openai_test.go @@ -12,6 +12,12 @@ import ( "github.com/stretchr/testify/assert" ) +func TestNeedsRawModeGPT6(t *testing.T) { + if !NewClient().NeedsRawMode("gpt-6-astra") { + t.Fatal("gpt-6 models should use raw mode") + } +} + func TestBuildResponseRequestWithMaxTokens(t *testing.T) { var msgs []*chat.ChatCompletionMessage From f8bc07f2d77899a8d66edb773288db318b62c0cf Mon Sep 17 00:00:00 2001 From: ctbaum Date: Sun, 6 Sep 2026 12:57:58 +0200 Subject: [PATCH 2/2] chore: incoming 2216 changelog entry --- cmd/generate_changelog/incoming/2216.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cmd/generate_changelog/incoming/2216.txt diff --git a/cmd/generate_changelog/incoming/2216.txt b/cmd/generate_changelog/incoming/2216.txt new file mode 100644 index 00000000..93234230 --- /dev/null +++ b/cmd/generate_changelog/incoming/2216.txt @@ -0,0 +1,3 @@ +### PR [#2216](https://github.com/danielmiessler/Fabric/pull/2216) by [ctbaum](https://github.com/ctbaum): fix: enable raw mode for GPT-6 models + +- Fix: enable raw mode for GPT-6 models