mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
v4.4.7-2 (#388)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ChatCompletionRequestMessage } from '../type';
|
||||
import { getAIChatApi } from '../config';
|
||||
import { getAIApi } from '../config';
|
||||
|
||||
export const Prompt_QuestionGuide = `我不太清楚问你什么问题,请帮我生成 3 个问题,引导我继续提问。问题的长度应小于20个字符,按 JSON 格式返回: ["问题1", "问题2", "问题3"]`;
|
||||
|
||||
@@ -10,8 +10,8 @@ export async function createQuestionGuide({
|
||||
messages: ChatCompletionRequestMessage[];
|
||||
model: string;
|
||||
}) {
|
||||
const chatAPI = getAIChatApi();
|
||||
const { data } = await chatAPI.createChatCompletion({
|
||||
const ai = getAIApi();
|
||||
const data = await ai.chat.completions.create({
|
||||
model: model,
|
||||
temperature: 0,
|
||||
max_tokens: 200,
|
||||
|
Reference in New Issue
Block a user