Merge f6bfcfa5c6 into da71eaebd2
This commit is contained in:
commit
ad04576bef
@ -68,7 +68,13 @@ export function resolveModel(
|
|||||||
(entry) => normalizeProviderId(entry.provider) === normalizedProvider && entry.id === modelId,
|
(entry) => normalizeProviderId(entry.provider) === normalizedProvider && entry.id === modelId,
|
||||||
);
|
);
|
||||||
if (inlineMatch) {
|
if (inlineMatch) {
|
||||||
const normalized = normalizeModelCompat(inlineMatch as Model<Api>);
|
// Ensure the api field is set from the provider config if not specified in the model
|
||||||
|
const providerCfg = providers[inlineMatch.provider];
|
||||||
|
const modelWithApi = {
|
||||||
|
...inlineMatch,
|
||||||
|
api: inlineMatch.api ?? providerCfg?.api ?? "openai-responses",
|
||||||
|
} as Model<Api>;
|
||||||
|
const normalized = normalizeModelCompat(modelWithApi);
|
||||||
return {
|
return {
|
||||||
model: normalized,
|
model: normalized,
|
||||||
authStorage,
|
authStorage,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user