feat(models): declare provider APIs and simplify preset configuration

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-10 01:33:02 +08:00
1 parent 592f0559a9
commit 994ce51502
26 files changed
+444 -123

No files matched your search

+4
View File
@@ -717,6 +717,10 @@ export interface SettingsPayload {
model_selectable?: boolean;
model_catalog?: ProviderModelsPayload["catalog_kind"];
model_api_configurable?: boolean;
/** Request formats implemented by the host's provider adapter. */
request_apis?: Array<
"chat_completions" | "responses" | "anthropic_messages" | "bedrock_converse" | "transcription"
>;
api_type?: "auto" | "chat_completions" | "responses";
oauth_account?: string | null;
oauth_expires_at?: number | null;