fix: remove double provider prefix in model label
This commit is contained in:
@@ -30,7 +30,10 @@ function getModel(ctx: ExtensionContext, key: string): any {
|
|||||||
|
|
||||||
function modelLabel(key: string): string {
|
function modelLabel(key: string): string {
|
||||||
const m = MODELS[key];
|
const m = MODELS[key];
|
||||||
return m ? `${m.provider}/${m.id}` : key;
|
if (!m) return key;
|
||||||
|
// Model IDs already include provider prefix (e.g. "openrouter/owl-alpha")
|
||||||
|
// so just use the ID directly to avoid double-prefixing
|
||||||
|
return m.id.includes("/") ? m.id : `${m.provider}/${m.id}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function (pi: ExtensionAPI) {
|
export default function (pi: ExtensionAPI) {
|
||||||
|
|||||||
Reference in New Issue
Block a user