diff --git a/enjoy/src/constants.ts b/enjoy/src/constants.ts index 0b3a869b..1f528b22 100644 --- a/enjoy/src/constants.ts +++ b/enjoy/src/constants.ts @@ -34,7 +34,7 @@ export const WHISPER_MODELS_OPTIONS = [ type: "large", name: "ggml-large.bin", size: "3.09 GB", - url: "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large.bin", + url: "https://huggingface.co/ggerganov/whisper.cpp/blob/main/ggml-large-v3.bin", }, ]; diff --git a/enjoy/src/i18n/en.json b/enjoy/src/i18n/en.json index ffc69b7f..8a69130f 100644 --- a/enjoy/src/i18n/en.json +++ b/enjoy/src/i18n/en.json @@ -86,7 +86,8 @@ "ttsVoice": "TTS voice", "ttsBaseUrl": "TTS base URL", "notFound": "Conversation not found", - "contentRequired": "Content required" + "contentRequired": "Content required", + "failedToGenerateResponse": "Failed to generate response" }, "pronunciationAssessment": { "pronunciationScore": "Pronunciation Score", diff --git a/enjoy/src/i18n/zh-CN.json b/enjoy/src/i18n/zh-CN.json index 9521b805..3de4e0bf 100644 --- a/enjoy/src/i18n/zh-CN.json +++ b/enjoy/src/i18n/zh-CN.json @@ -86,7 +86,8 @@ "ttsVoice": "TTS 声音", "ttsBaseUrl": "TTS 请求地址", "notFound": "未找到对话", - "contentRequired": "对话内容不能为空" + "contentRequired": "对话内容不能为空", + "failedToGenerateResponse": "生成失败" }, "pronunciationAssessment": { "pronunciationScore": "发音得分", diff --git a/enjoy/src/main/db/models/conversation.ts b/enjoy/src/main/db/models/conversation.ts index 62a468a6..47a9d34d 100644 --- a/enjoy/src/main/db/models/conversation.ts +++ b/enjoy/src/main/db/models/conversation.ts @@ -267,13 +267,14 @@ export class Conversation extends Model { const chain = await this.chain(); let response: Generation[] = []; - await chain.call({ input: content }, [ + const result = await chain.call({ input: content }, [ { handleLLMEnd: async (output) => { response = output.generations[0]; }, }, ]); + logger.debug("LLM result:", result); if (!response) { throw new Error(t("models.conversation.failedToGenerateResponse")); diff --git a/enjoy/src/renderer/components/conversations/conversation-form.tsx b/enjoy/src/renderer/components/conversations/conversation-form.tsx index 69db60b9..7e991f8f 100644 --- a/enjoy/src/renderer/components/conversations/conversation-form.tsx +++ b/enjoy/src/renderer/components/conversations/conversation-form.tsx @@ -627,8 +627,6 @@ export const LLM_PROVIDERS: { [key: string]: any } = { openai: { name: "OpenAI", description: t("youNeedToSetupApiKeyBeforeUsingOpenAI"), - baseUrl: - "https://gateway.ai.cloudflare.com/v1/11d43ab275eb7e1b271ba4089ecc3864/enjoy/openai", models: [ "gpt-3.5-turbo-1106", "gpt-3.5-turbo",