refactor: split up models.dev and config model definitions to prevent coupling (#20605)

This commit is contained in:
Aiden Cline
2026-04-02 10:00:43 -05:00
committed by GitHub
parent ec3ae17e4d
commit 23c8656080
4 changed files with 70 additions and 26 deletions
+2 -2
View File
@@ -903,8 +903,8 @@ export namespace Provider {
npm: model.provider?.npm ?? provider.npm ?? "@ai-sdk/openai-compatible",
},
status: model.status ?? "active",
headers: model.headers ?? {},
options: model.options ?? {},
headers: {},
options: {},
cost: {
input: model.cost?.input ?? 0,
output: model.cost?.output ?? 0,