fix(provider): refresh models in background
This commit is contained in:
parent
7e7ad37736
commit
72244e9e09
6 changed files with 112 additions and 37 deletions
|
|
@ -77,6 +77,7 @@ export type Event =
|
|||
| EventTuiSessionSelect2
|
||||
| EventMcpToolsChanged
|
||||
| EventMcpBrowserOpenFailed
|
||||
| EventProviderModelsUpdated
|
||||
| EventCommandExecuted
|
||||
| EventProjectDirectoriesUpdated
|
||||
| EventProjectUpdated
|
||||
|
|
@ -1495,6 +1496,13 @@ export type GlobalEvent = {
|
|||
url: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "provider.models.updated"
|
||||
properties: {
|
||||
providerID: string
|
||||
}
|
||||
}
|
||||
| {
|
||||
id: string
|
||||
type: "command.executed"
|
||||
|
|
@ -5138,6 +5146,14 @@ export type EventMcpBrowserOpenFailed = {
|
|||
}
|
||||
}
|
||||
|
||||
export type EventProviderModelsUpdated = {
|
||||
id: string
|
||||
type: "provider.models.updated"
|
||||
properties: {
|
||||
providerID: string
|
||||
}
|
||||
}
|
||||
|
||||
export type EventCommandExecuted = {
|
||||
id: string
|
||||
type: "command.executed"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue