automatically adapt different models' context length

This commit is contained in:
josc146
2023-06-14 11:08:23 +08:00
parent 912412f2d8
commit ed790ebb95
12 changed files with 31 additions and 17 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ async function prepareForRightClickMenu() {
const menuItem = menuConfig[data.itemId]
if (!menuItem.genPrompt) return
else prompt = await menuItem.genPrompt()
if (prompt) prompt = cropText(`Reply in ${await getPreferredLanguage()}.\n` + prompt)
if (prompt) prompt = await cropText(`Reply in ${await getPreferredLanguage()}.\n` + prompt)
}
const position = data.useMenuPosition