From dc362915f484760dad2ca06df671bd93cd3071e5 Mon Sep 17 00:00:00 2001 From: gelongshui <827736459@qq.com> Date: Mon, 13 Nov 2023 20:08:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20gpt4=E6=96=B0=E5=A2=9E=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/chatgpt-api.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b325a0b..50b980e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tzzack/chatgpt", - "version": "1.0.2", + "version": "1.0.3", "description": "Node.js client for the official ChatGPT API.", "author": "Travis Fischer ", "repository": "transitive-bullshit/chatgpt-api", diff --git a/src/chatgpt-api.ts b/src/chatgpt-api.ts index 7bb1f20..40a2304 100644 --- a/src/chatgpt-api.ts +++ b/src/chatgpt-api.ts @@ -202,7 +202,9 @@ export class ChatGPTAPI { 'gpt-3.5-turbo', 'gpt-3.5-turbo-0613', 'gpt-3.5-turbo-16k', - 'gpt-3.5-turbo-16k-0613' + 'gpt-3.5-turbo-16k-0613', + 'gpt-4-vision-preview', + 'gpt-4-1106-preview' ].includes(model) if (!isGpt) { url = `${this._apiBaseUrl}/completions`