Fix: model selection format compat and provider api_key wrapping (#17112)

This commit is contained in:
chanx
2026-07-20 19:12:59 +08:00
committed by GitHub
parent 9a2a3c0459
commit b3f731d4de
7 changed files with 76 additions and 34 deletions

View File

@@ -117,10 +117,17 @@ export interface IUpdateProviderInstanceRequestBody {
verify?: boolean;
}
export interface ISetDefaultModelRequestBody {
model_type: string;
model_id: string;
}
export type ISetDefaultModelRequestBody =
| {
model_type: string;
model_id: string;
}
| {
model_type: string;
model_provider: string;
model_instance: string;
model_name: string;
};
/**
* Item shape returned by the list-provider-models endpoint.