feat(ai): complete models runtime migration

This commit is contained in:
Mario Zechner
2026-06-23 15:29:17 +02:00
parent 470a4736a3
commit 129eb460cd
47 changed files with 1502 additions and 576 deletions
+3 -2
View File
@@ -11,6 +11,7 @@ import type {
Context,
Model,
ModelThinkingLevel,
ProviderHeaders,
ProviderStreams,
SimpleStreamOptions,
StreamOptions,
@@ -33,7 +34,7 @@ export interface Provider<TApi extends Api = Api> {
readonly name: string;
readonly baseUrl?: string;
readonly headers?: Record<string, string>;
readonly headers?: ProviderHeaders;
/**
* Required: at least one of `apiKey`/`oauth`. Every provider has auth
@@ -287,7 +288,7 @@ export interface CreateProviderOptions<TApi extends Api = Api> {
/** Display name. Default: `id`. */
name?: string;
baseUrl?: string;
headers?: Record<string, string>;
headers?: ProviderHeaders;
/** Required — every provider has auth semantics, even ambient/keyless ones. */
auth: ProviderAuth;
/** Initial model list (empty for purely dynamic providers). */