fix little bug

This commit is contained in:
sijinhui 2024-07-17 13:47:09 +08:00
parent a3c4f10713
commit 45913941e8
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ export class ChatGPTApi implements LLMApi {
} else { } else {
chatPath = this.path(OpenaiPath.ChatPath); chatPath = this.path(OpenaiPath.ChatPath);
} }
console.log('333333', chatPath) // console.log('333333', chatPath)
const chatPayload = { const chatPayload = {
method: "POST", method: "POST",
body: JSON.stringify(requestPayload), body: JSON.stringify(requestPayload),

View File

@ -707,7 +707,7 @@ export const useChatStore = createPersistStore(
extAttr?.setAutoScroll(true); extAttr?.setAutoScroll(true);
} else { } else {
const api: ClientApi = getClientApi(modelConfig.providerName) const api: ClientApi = getClientApi(modelConfig.providerName)
console.log('-------', modelConfig, '-----', api) // console.log('-------', modelConfig, '-----', api)
// make request // make request
api.llm.chat({ api.llm.chat({