Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Hk-Gosuto
2024-03-08 17:35:59 +08:00
parent 8fbcc653a0
commit f1c9c96082
7 changed files with 312 additions and 387 deletions

View File

@@ -308,7 +308,7 @@ export class ChatGPTApi implements LLMApi {
async toolAgentChat(options: AgentChatOptions) {
const messages = options.messages.map((v) => ({
role: v.role,
content: v.content,
content: getMessageTextContent(v),
}));
const modelConfig = {