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

[FEAT]: Supporting openai base change or supporting python dotenv as server loading #11

Closed
redreamality opened this issue Aug 26, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@redreamality
Copy link

Description

.env file

OPENAI_API_KEY=xxx
OPENAI_API_TYPE=open_ai
OPENAI_API_BASE="xxxx"

python file

from dotenv import load_dotenv
load_dotenv(".env")

@redreamality redreamality added the enhancement New feature or request label Aug 26, 2023
@codeacme17
Copy link
Owner

OPENAI_API_BASE is for Azure right? I don't know whether openai also needs to set this parameter..
The environment variables here are all configured by the user through the client, and then I will store them in the corresponding database, and finally store them in the python environment variables

@redreamality
Copy link
Author

you can set it either for openai.
This is an approach to supporting calling openai API behind an enterprise gateway.

@codeacme17
Copy link
Owner

OK, i will test, thx for your enhancement.

@codeacme17
Copy link
Owner

@redreamality Thanks for the suggestion, I added the openai_api_base config option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants