mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
Codex CLI - setting 'store = false'
store = true leads to:
BadRequestError("Error code: 400 - {'detail': 'Store must be set to false'}")
This commit is contained in:
@@ -259,9 +259,6 @@ func ConvertOpenAIRequestToCodex(modelName string, inputRawJSON []byte, stream b
|
|||||||
out, _ = sjson.Set(out, "text.verbosity", v.Value())
|
out, _ = sjson.Set(out, "text.verbosity", v.Value())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The examples include store: true when response_format is provided
|
|
||||||
store = true
|
|
||||||
} else if text.Exists() {
|
} else if text.Exists() {
|
||||||
// If only text.verbosity present (no response_format), map verbosity
|
// If only text.verbosity present (no response_format), map verbosity
|
||||||
if v := text.Get("verbosity"); v.Exists() {
|
if v := text.Get("verbosity"); v.Exists() {
|
||||||
@@ -306,10 +303,6 @@ func ConvertOpenAIRequestToCodex(modelName string, inputRawJSON []byte, stream b
|
|||||||
out, _ = sjson.SetRaw(out, "tools.-1", item)
|
out, _ = sjson.SetRaw(out, "tools.-1", item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// The examples include store: true when tools and formatting are used; be conservative
|
|
||||||
if rf.Exists() {
|
|
||||||
store = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
out, _ = sjson.Set(out, "store", store)
|
out, _ = sjson.Set(out, "store", store)
|
||||||
|
|||||||
Reference in New Issue
Block a user