Skip to content

Commit

Permalink
Merge pull request #844 from lostmygithubaccount/docs-fix
Browse files Browse the repository at this point in the history
docs: fix environment variable in docs/warning message
  • Loading branch information
zzstoatzz authored Feb 13, 2024
2 parents 6722933 + f246f8e commit e73e891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/configuration/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Please set Marvin specific settings in `~/.marvin/.env`. One exception being `OP
For example, in your `~/.marvin/.env` file you could have:
```shell
MARVIN_LOG_LEVEL=INFO
MARVIN_OPENAI_CHAT_COMPLETIONS_MODEL=gpt-4
MARVIN_CHAT_COMPLETIONS_MODEL=gpt-4
MARVIN_OPENAI_API_KEY='sk-my-api-key'
```
Settings these values will let you avoid setting an API key every time.
Expand Down
2 changes: 1 addition & 1 deletion src/marvin/client/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async def should_fallback(e: NotFoundError, request: ChatRequest) -> bool:
" API key likely does not give you access to. This API call will"
f" fall back to the {FALLBACK_CHAT_COMPLETIONS_MODEL!r} model. To"
" avoid this warning, please set"
" `MARVIN_OPENAI_CHAT_COMPLETIONS_MODEL=<accessible model>` in"
" `MARVIN_CHAT_COMPLETIONS_MODEL=<accessible model>` in"
f" `~/.marvin/.env` - for example, `gpt-3.5-turbo`.\n\n {e}"
)
return True
Expand Down

0 comments on commit e73e891

Please sign in to comment.