fix: ai对话

This commit is contained in:
liuweiqing 2024-02-18 15:59:46 +08:00
parent 763a1062f9
commit 96d780dd3a
2 changed files with 3 additions and 2 deletions

View File

@ -252,7 +252,8 @@ const QEditor = ({ lng }) => {
selectedModel!,
apiKey,
upsreamUrl,
prompt
prompt,
cursorPosition!
);
// 清空input内容
setUserInput("");

View File

@ -28,7 +28,7 @@ const sendMessageToOpenAI = async (
apiKey: string,
upsreamUrl: string,
prompt: string,
cursorPosition?: number
cursorPosition: number
) => {
//识别应该使用的模型
let model = selectedModel;