perf: system model list

This commit is contained in:
archer
2023-05-13 14:38:43 +08:00
parent 4ec02c654b
commit 5f66f4523c
12 changed files with 66 additions and 120 deletions

View File

@@ -63,7 +63,7 @@ export const getApiKey = async ({
},
[ClaudeEnum.Claude]: {
userOpenAiKey: '',
systemAuthKey: process.env.LAFKEY as string
systemAuthKey: process.env.CLAUDE_KEY as string
}
};

View File

@@ -30,7 +30,7 @@ export const lafClaudChat = async ({
const prompt = `${systemPromptText}我的问题是:'${messages[messages.length - 1].value}'`;
const lafResponse = await axios.post(
'https://hnvacz.laf.run/claude-gpt',
process.env.CLAUDE_BASE_URL || '',
{
prompt,
stream,