lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Request] ability to disable custom api entry.

Open GOvEy1nw opened this issue 9 months ago • 2 comments

🥰 Feature Description

Add option to disable the ability for users to add a custom API, so they can only access and use it if they have an access code.

🧐 Proposed Solution

Likely via an environment variable such as DISABLE_CUSTOM_API

📝 Additional Information

No response

GOvEy1nw avatar May 01 '24 11:05 GOvEy1nw

👀 @GOvEy1nw

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 avatar May 01 '24 11:05 lobehubbot

That is a needed one! Don't want to provide the bandwith for everyone :D

hra42 avatar May 12 '24 17:05 hra42

We have supported it, please check document: https://lobehub.com/docs/self-hosting/advanced/feature-flags

arvinxx avatar May 28 '24 10:05 arvinxx

✅ @GOvEy1nw

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot avatar May 28 '24 10:05 lobehubbot

@arvinxx its still possible to set the openAI key after first setup when you need to enter the app password. This is a fresh user / browser / OS that never used LobeChat before

My featureflags: FEATURE_FLAGS=-webrtc_sync,-language_model_settings,-openai_api_key,-openai_proxy_url,-create_session,-edit_agent,-dalle,-check_updates,-welcome_suggest

Screenshot: image image

hra42 avatar May 28 '24 11:05 hra42

@HRA42 Thanks the catch, this is the missing one

arvinxx avatar May 28 '24 13:05 arvinxx