mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-26 10:23:28 +08:00
Fix: model selection format compat and provider api_key wrapping (#17112)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user