Merge branch 'main' into dev

This commit is contained in:
Luis Pater
2025-09-12 13:12:02 +08:00
2 changed files with 7 additions and 7 deletions

View File

@@ -47,9 +47,16 @@ The first Chinese provider has now been added: [Qwen Code](https://github.com/Qw
``` ```
2. Build the application: 2. Build the application:
Linux, macOS:
```bash ```bash
go build -o cli-proxy-api ./cmd/server go build -o cli-proxy-api ./cmd/server
``` ```
Windows:
```bash
go build -o cli-proxy-api.exe ./cmd/server
```
## Usage ## Usage

View File

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