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
44.09k stars 9.85k forks source link

[Request] Add a way to configure the detail API option for vision models. #1312

Open ghost opened 8 months ago

ghost commented 8 months ago

🥰 Feature Description

Hi! Thanks for creating Lobe, it's a really good frontend. My feature request is pretty simple - I want to be able to choose the "detail" parameter that is used for the gpt-4-vision-preview model (https://platform.openai.com/docs/guides/vision/low-or-high-fidelity-image-understanding):

Currently it's hard-coded to "auto" here - https://github.com/lobehub/lobe-chat/blob/main/src/services/chat.ts#L152

I want to be able to choose "high" for the model to always process images in high quality. Is it possible to add this as an option to the model configuration settings?

Thanks in advance!

🧐 Proposed Solution

Add an option to change the "detail" option for vision models in "Model settings" of an agent.

📝 Additional Information

No response

lobehubbot commented 8 months ago

👀 @Yardanico

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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。