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

♻️ refactor: add global credential tool model in credential.py… #404

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.exp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# NOTE:If you want to share your bot to **everyone**
# GLOBAL_OAI_KEY=sk-xxx
# GLOBAL_OAI_MODEL=gpt-3.5-turbo-0613
GLOBAL_OAI_MODEL=gpt-3.5-turbo
GLOBAL_OAI_TOOL_MODEL=gpt-3.5-turbo
# GLOBAL_OAI_ENDPOINT=https://api.openai.com/v1/

AMQP_DSN=amqp://admin:8a8a8a@localhost:5672/
Expand Down
1 change: 1 addition & 0 deletions app/components/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def from_provider(cls, token, provider_url):
api_key=os.getenv("GLOBAL_OAI_KEY"),
api_endpoint=os.getenv("GLOBAL_OAI_ENDPOINT"),
api_model=os.getenv("GLOBAL_OAI_MODEL", "gpt-3.5-turbo"),
api_tool_model=os.getenv("GLOBAL_OAI_TOOL_MODEL", "gpt-3.5-turbo"),
)
else:
global_credential = None
Loading