lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
39.94k stars 9.09k forks source link

[Question] 如何手动修改默认的gpt-4-1106-preview,gpt-4-32k模型到GPT的其他版本号上,不通过自定义模型方式,需要改代码哪个位置,谢谢! #419

Closed itq5 closed 10 months ago

itq5 commented 10 months ago

🧐 问题描述 | Proposed Solution

[Question] 如何手动修改默认的gpt-4-1106-preview,gpt-4-32k模型到GPT的其他版本号上,不通过自定义模型方式,需要改代码哪个位置,谢谢! image

📝 补充信息 | Additional Information

No response

lobehubbot commented 10 months ago

👀 @itq5

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

arvinxx commented 10 months ago

现在暂不支持指定,你要改的话,要自己 fork 了修改:

https://github.com/lobehub/lobe-chat/blob/main/src/types/llm.ts#L4

-  GPT4 = 'gpt-4',
+  GPT4 = 'gpt-4-1106-preview',