From 7ed50a9b44a1aa853b759b0538ccb5f1e41e68fb Mon Sep 17 00:00:00 2001 From: James Date: Wed, 19 Jun 2024 13:08:40 +0700 Subject: [PATCH] update model Signed-off-by: James --- src/resources/models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/models.ts b/src/resources/models.ts index 2864600f9..f7c390cf0 100644 --- a/src/resources/models.ts +++ b/src/resources/models.ts @@ -59,7 +59,7 @@ export class Models extends APIResource { } update(model: string, body: Record, options?: Core.RequestOptions) { - return this._client.patch(`/models/${model}`, { body, ...options }); + return this._client.post(`/models/${model}/config`, { body, ...options }); } }