Merge pull request #2216 from ctbaum/fix/gpt-6-raw-mode

fix: enable raw mode for GPT-6 models
This commit is contained in:
Kayvan Sylvan 2026-09-07 12:15:38 -07:00 committed by GitHub
commit e91b4f0af1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -223,6 +223,7 @@ func (o *Client) NeedsRawMode(modelName string) bool {
openaiModelsPrefixes := []string{
"glm",
"gpt-5",
"gpt-6",
"o1",
"o3",
"o4",

View file

@ -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