@codex-native/sdk 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +9 -9
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +9 -9
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -163,6 +163,11 @@ var CodexModel = class {
|
|
|
163
163
|
getThreadOptions() {
|
|
164
164
|
return {
|
|
165
165
|
model: this.modelName,
|
|
166
|
+
// IMPORTANT: ModelProvider must be forwarded to thread options, otherwise
|
|
167
|
+
// codex-rs will fall back to the default provider from ~/.codex/config.toml
|
|
168
|
+
// (or another discovered config). This was causing Agents runs to ignore
|
|
169
|
+
// `new CodexProvider({ modelProvider: "github" })` and hit the wrong backend.
|
|
170
|
+
modelProvider: this.options.modelProvider,
|
|
166
171
|
// When a custom baseUrl is provided (e.g., test proxy), do not enable OSS mode,
|
|
167
172
|
// since the backend is not Ollama in that case.
|
|
168
173
|
oss: this.options.baseUrl ? false : this.options.oss,
|