Skip to content

Commit

Permalink
♻️ refactor: add global credential tool model in credential.py and up…
Browse files Browse the repository at this point in the history
…date .env.exp
  • Loading branch information
sudoskys committed Apr 20, 2024
1 parent 522d2b5 commit 9052dc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit 9052dc5

Please sign in to comment.