fix: ai对话
This commit is contained in:
parent
763a1062f9
commit
96d780dd3a
|
@ -252,7 +252,8 @@ const QEditor = ({ lng }) => {
|
|||
selectedModel!,
|
||||
apiKey,
|
||||
upsreamUrl,
|
||||
prompt
|
||||
prompt,
|
||||
cursorPosition!
|
||||
);
|
||||
// 清空input内容
|
||||
setUserInput("");
|
||||
|
|
|
@ -28,7 +28,7 @@ const sendMessageToOpenAI = async (
|
|||
apiKey: string,
|
||||
upsreamUrl: string,
|
||||
prompt: string,
|
||||
cursorPosition?: number
|
||||
cursorPosition: number
|
||||
) => {
|
||||
//识别应该使用的模型
|
||||
let model = selectedModel;
|
||||
|
|
Loading…
Reference in New Issue
Block a user