diff --git a/package.json b/package.json index cb3d182..5ea1221 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpilot", - "version": "0.9.1115", + "version": "0.10.0102", "author": "webpilot.ai", "displayName": "Webpilot - Copilot for All, Free & Open", "description": "__MSG_extensionDescription__", diff --git a/src/components/PromptEditor.vue b/src/components/PromptEditor.vue index 03da995..d2d81dd 100644 --- a/src/components/PromptEditor.vue +++ b/src/components/PromptEditor.vue @@ -12,7 +12,7 @@ ref="textareaRef" v-model="command" :class="$style.content__textarea" - maxlength="2048" + maxlength="8192" :placeholder="prompt.command || $gettext('Set a prompt here')" />
diff --git a/src/hooks/useAskAi.ts b/src/hooks/useAskAi.ts index ebfcf04..1459314 100644 --- a/src/hooks/useAskAi.ts +++ b/src/hooks/useAskAi.ts @@ -162,7 +162,7 @@ export default function useAskAi() { model.max_tokens = 300 } else if (isAskPage) { // 全局 popup,默认使用 16k 接口` - model.model = 'gpt-3.5-turbo-16k' + model.model = 'gpt-3.5-turbo-1106' } let storeAuthKey = currentConfig.authKey diff --git a/src/io.ts b/src/io.ts index 261aa34..bb8df39 100644 --- a/src/io.ts +++ b/src/io.ts @@ -67,7 +67,7 @@ export async function askOpenAI({authKey, model, message, baseURL = null, apiOri // Reassemble model and process long content request const requestModel = {...model} requestModel.messages = - requestModel.model === 'gpt-3.5-turbo-16k' ? getNewCutMessages(message) : message + requestModel.model === 'gpt-3.5-turbo-1106' ? getNewCutMessages(message) : message requestModel.stream = true // Assemble url