refactor(core): nest model api id (#30603)

This commit is contained in:
Dax
2026-06-03 14:11:38 -04:00
committed by GitHub
parent af6383485b
commit 11dbd15812
35 changed files with 129 additions and 79 deletions
+4 -2
View File
@@ -2685,12 +2685,12 @@ export type EventTuiSessionSelect2 = {
export type ModelV2Info = {
id: string
apiID: string
providerID: string
family?: string
name: string
api:
| {
id: string
type: "aisdk"
package: string
url?: string
@@ -2699,6 +2699,7 @@ export type ModelV2Info = {
}
}
| {
id: string
type: "native"
url?: string
settings: {
@@ -3694,12 +3695,12 @@ export type EventPluginAdded = {
export type ModelV2Info1 = {
id: string
apiID: string
providerID: string
family?: string
name: string
api:
| {
id: string
type: "aisdk"
package: string
url?: string
@@ -3708,6 +3709,7 @@ export type ModelV2Info1 = {
}
}
| {
id: string
type: "native"
url?: string
settings: {
+16 -12
View File
@@ -19300,9 +19300,6 @@
"id": {
"type": "string"
},
"apiID": {
"type": "string"
},
"providerID": {
"type": "string"
},
@@ -19317,6 +19314,9 @@
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["aisdk"]
@@ -19331,12 +19331,15 @@
"type": "object"
}
},
"required": ["type", "package"],
"required": ["id", "type", "package"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["native"]
@@ -19348,7 +19351,7 @@
"type": "object"
}
},
"required": ["type", "settings"],
"required": ["id", "type", "settings"],
"additionalProperties": false
}
]
@@ -19515,7 +19518,6 @@
},
"required": [
"id",
"apiID",
"providerID",
"name",
"api",
@@ -22371,9 +22373,6 @@
"id": {
"type": "string"
},
"apiID": {
"type": "string"
},
"providerID": {
"type": "string"
},
@@ -22388,6 +22387,9 @@
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["aisdk"]
@@ -22402,12 +22404,15 @@
"type": "object"
}
},
"required": ["type", "package"],
"required": ["id", "type", "package"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["native"]
@@ -22419,7 +22424,7 @@
"type": "object"
}
},
"required": ["type", "settings"],
"required": ["id", "type", "settings"],
"additionalProperties": false
}
]
@@ -22582,7 +22587,6 @@
},
"required": [
"id",
"apiID",
"providerID",
"name",
"api",