mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
remove , using instead
This commit is contained in:
@@ -9,7 +9,6 @@ import type {
|
||||
MachinePathsExistsResponse,
|
||||
MachinesResponse,
|
||||
MessagesResponse,
|
||||
ModelMode,
|
||||
PermissionMode,
|
||||
PushSubscriptionPayload,
|
||||
PushUnsubscribePayload,
|
||||
@@ -313,7 +312,7 @@ export class ApiClient {
|
||||
})
|
||||
}
|
||||
|
||||
async setModelMode(sessionId: string, model: ModelMode): Promise<void> {
|
||||
async setModel(sessionId: string, model: string | null): Promise<void> {
|
||||
await this.request(`/api/sessions/${encodeURIComponent(sessionId)}/model`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ model })
|
||||
|
||||
Reference in New Issue
Block a user