claude-codex-proxy 1.0.5-beta.40 → 1.0.5-beta.41
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/package.json +1 -1
- package/src/model-mapper.js +3 -4
- package/src/server-settings.js +1 -1
package/package.json
CHANGED
package/src/model-mapper.js
CHANGED
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
* Maps Anthropic/Claude model names to upstream OpenAI model identifiers.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { getServerSettings } from './server-settings.js';
|
|
7
|
-
|
|
8
|
-
const DEFAULT_CODEX_MODEL = 'gpt-5.5';
|
|
6
|
+
import { DEFAULT_SETTINGS, getServerSettings } from './server-settings.js';
|
|
9
7
|
|
|
10
8
|
const DIRECT_GPT_MODEL_RE = /^gpt-[a-z0-9][a-z0-9._-]*(?::[a-z0-9._-]+)?$/i;
|
|
11
9
|
|
|
12
10
|
function getDefaultCodexModel(settings = getServerSettings()) {
|
|
13
|
-
|
|
11
|
+
// Keep the routing fallback aligned with the centralized built-in default.
|
|
12
|
+
return settings.defaultCodexModel || DEFAULT_SETTINGS.defaultCodexModel;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
function lookupModelMap(model, modelMap) {
|
package/src/server-settings.js
CHANGED
|
@@ -15,7 +15,7 @@ export const DEFAULT_CLIENT_KEY_FIVE_HOUR_LIMIT_USD = 0;
|
|
|
15
15
|
|
|
16
16
|
export const DEFAULT_SETTINGS = {
|
|
17
17
|
accountStrategy: 'sticky',
|
|
18
|
-
defaultCodexModel: 'gpt-
|
|
18
|
+
defaultCodexModel: 'gpt-6.1-sol',
|
|
19
19
|
logRawProxyPayloads: false,
|
|
20
20
|
modelMap: DEFAULT_MODEL_MAP,
|
|
21
21
|
clientApiKeys: []
|