@koreanhole/opencodex 3.2.11 → 3.2.13
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
CHANGED
package/src/lib/codex-catalog.ts
CHANGED
|
@@ -131,7 +131,7 @@ export function buildCodexCatalogModel(providerId: "cline-cli" | "gemini-cli", m
|
|
|
131
131
|
: 100;
|
|
132
132
|
return {
|
|
133
133
|
slug: `${providerId}/${encodeRoutedId(model.id)}`,
|
|
134
|
-
display_name: model.name ?? (isDefault ? `${providerLabel} default` : model.id),
|
|
134
|
+
display_name: model.name ?? (isDefault ? (providerId === "cline-cli" ? "Cline" : `${providerLabel} default`) : model.id),
|
|
135
135
|
description: model.description ?? `Routed via opencodex -> ${providerLabel}.`,
|
|
136
136
|
default_reasoning_level: levels.length > 0 ? defaultLevel : "low",
|
|
137
137
|
supported_reasoning_levels: levels,
|
package/src/server/responses.ts
CHANGED
|
@@ -374,10 +374,9 @@ function modelIdOf(model: ProviderModelEntry): string {
|
|
|
374
374
|
return typeof model === "string" ? model : model.id;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
};
|
|
377
|
+
function defaultModelDisplayName(providerId: ProviderId): string {
|
|
378
|
+
return providerId === CLINE_PROVIDER_ID ? "Cline" : "Gemini CLI default";
|
|
379
|
+
}
|
|
381
380
|
|
|
382
381
|
function listedProviderEntries(
|
|
383
382
|
known: ProviderModels,
|
|
@@ -400,7 +399,7 @@ export function modelList(
|
|
|
400
399
|
object: "model",
|
|
401
400
|
created: 0,
|
|
402
401
|
owned_by: CLINE_PROVIDER_ID,
|
|
403
|
-
display_name: id === "default" ? "Cline
|
|
402
|
+
display_name: id === "default" ? "Cline" : id,
|
|
404
403
|
}));
|
|
405
404
|
}
|
|
406
405
|
if (scope) {
|
|
@@ -418,7 +417,7 @@ export function modelList(
|
|
|
418
417
|
object: "model",
|
|
419
418
|
created: 0,
|
|
420
419
|
owned_by: scope,
|
|
421
|
-
display_name: info.name ?? (id === "default" ?
|
|
420
|
+
display_name: info.name ?? (id === "default" ? defaultModelDisplayName(scope) : id),
|
|
422
421
|
...(info.description ? { description: info.description } : {}),
|
|
423
422
|
...(info.contextWindowTokens !== undefined
|
|
424
423
|
? {
|
|
@@ -462,7 +461,7 @@ export function modelList(
|
|
|
462
461
|
object: "model",
|
|
463
462
|
created: 0,
|
|
464
463
|
owned_by: providerId,
|
|
465
|
-
display_name: info.name ?? (id === "default" ?
|
|
464
|
+
display_name: info.name ?? (id === "default" ? defaultModelDisplayName(providerId) : id),
|
|
466
465
|
...(info.description ? { description: info.description } : {}),
|
|
467
466
|
...(info.contextWindowTokens !== undefined
|
|
468
467
|
? {
|