Skip to content

Commit

Permalink
chore: modify the prompt textarea max-length to 8192
Browse files Browse the repository at this point in the history
Signed-off-by: DingChil <[email protected]>
  • Loading branch information
DingChil committed Jan 2, 2024
1 parent b686af8 commit 70ace1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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__",
Expand Down
2 changes: 1 addition & 1 deletion src/components/PromptEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
/>
<article :class="$style.content__back">
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAskAi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70ace1c

Please sign in to comment.