Skip to content

Commit

Permalink
Merge branch 'master' into upload-logs-as-artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
waynehamadi authored Jun 10, 2023
2 parents c7b8d01 + 6ff8478 commit bd72aeb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ OPENAI_API_KEY=your-openai-api-key
## PROMPT_SETTINGS_FILE - Specifies which Prompt Settings file to use (defaults to prompt_settings.yaml)
# PROMPT_SETTINGS_FILE=prompt_settings.yaml

## OPENAI_API_BASE_URL - Custom url for the OpenAI API, useful for connecting to custom backends. No effect if USE_AZURE is true, leave blank to keep the default url
# the following is an example:
# OPENAI_API_BASE_URL=http://localhost:443/v1

## AUTHORISE COMMAND KEY - Key to authorise commands
# AUTHORISE_COMMAND_KEY=y

Expand Down
2 changes: 2 additions & 0 deletions autogpt/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def __init__(self) -> None:
openai.api_type = self.openai_api_type
openai.api_base = self.openai_api_base
openai.api_version = self.openai_api_version
elif os.getenv("OPENAI_API_BASE_URL", None):
openai.api_base = os.getenv("OPENAI_API_BASE_URL")

if self.openai_organization is not None:
openai.organization = self.openai_organization
Expand Down
2 changes: 1 addition & 1 deletion tests/challenges/current_score.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"memory_challenge_c": {
"max_level": 5,
"max_level_beaten": 1
"max_level_beaten": null
},
"memory_challenge_d": {
"max_level": 5,
Expand Down

0 comments on commit bd72aeb

Please sign in to comment.