Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] 扩展形如ENABLED_OPENAI的开关配置到所有provider #6848

Open
ChenLuoi opened this issue Mar 10, 2025 · 4 comments
Open

[Request] 扩展形如ENABLED_OPENAI的开关配置到所有provider #6848

ChenLuoi opened this issue Mar 10, 2025 · 4 comments
Labels
🌠 Feature Request New feature or request | 特性与建议

Comments

@ChenLuoi
Copy link

🥰 需求描述

前提条件

目前只有openai, ollama, aws bedrock支持ENABLED_${provider}的环境变量,其他provider均是通过是否配置了${provider}_API_KEY判断默认情况下的开启与否。

遇到问题
  1. 配置页面抓取的JINA_API_KEY后,会强制将jina默认打开,实际上我只是想要在爬虫中使用jina。即使配置JIRA_MODEL_LIST="-all",也会在模型选择面板增加一条空白的provider记录
  2. embedding模型也需要配置对应的API_KEY,导致provider被默认开放。当前使用了OPEN_AI_PROXY借用了可关闭访问的openai来配置的embedding模型

🧐 解决方案

期望对所有provider支持ENBALED_${provider},或者增加环境变量ENABLED_PROVIDERS="qwen,google,xai"选择性开放指定provider

📝 补充信息

No response

@ChenLuoi ChenLuoi added the 🌠 Feature Request New feature or request | 特性与建议 label Mar 10, 2025
@lobehubbot
Copy link
Member

👀 @ChenLuoi

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

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Requirement description

Prerequisites

Currently, only openai, ollama, aws bedrock supports the environment variables of ENABLED_${provider}. Other providers determine whether they are enabled by default by whether ${provider}_API_KEY is configured.

Encountered problems
  1. After configuring the JINA_API_KEY of the page crawling, it will force Jina to be turned on by default. In fact, I just want to use Jina in the crawler. Even if JIRA_MODEL_LIST="-all" is configured, a blank provider record will be added to the model selection panel.
  2. The embedding model also needs to configure the corresponding API_KEY, resulting in the provider being opened by default. Currently using OPEN_AI_PROXY to configure embedding model with a closed access openai

🧐 Solution

It is expected to support ENBALED_${provider} for all providers, or to add the environment variable ENABLED_PROVIDERS="qwen,google,xai" selectively open the specified provider

📝 Supplementary information

No response

@ChenLuoi ChenLuoi changed the title [Request] [Request] 扩展形如ENABLED_OPENAI的开关配置到所有provider Mar 10, 2025
@arvinxx
Copy link
Contributor

arvinxx commented Mar 10, 2025

Jina 可以换成Jina reader api key

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Jina can be replaced with Jina reader api key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议
Projects
None yet
Development

No branches or pull requests

3 participants