You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to try to find a similar issue and didn't find one.
I searched the Marvin documentation for this issue.
Bug summary
one issue is that the BASE_URL option doesn't seem to be documented anywhere -- would be happy to contribute an example after I have this working well
the main bug here is that if I have ~/.marvin/.env like so:
# LOCAL
MARVIN_OPENAI_BASE_URL="http://127.0.0.1:8080/v1"
I get an error (much of the stacktrace omitted for brevity):
[ins] In [1]: importmarvin@[ins] In [2]: @marvin.fn
...: defwrite_poem() ->str:
...: """Writes a cool poem"""
...:
[ins] In [3]: write_poem()
---------------------------------------------------------------------------RuntimeErrorTraceback (mostrecentcalllast)
...
ValueError: OpenAIAPIkeynotfound! Marvinwillnotworkproperlywithoutit.
Youcaneither:
1.Setthe`MARVIN_OPENAI_API_KEY`or`OPENAI_API_KEY`environmentvariables2.Set`marvin.settings.openai.api_key`inyourcode (notrecommendedforproduction)
IfyoudonothaveanOpenAIAPIkey, youcancreateoneathttps://platform.openai.com/api-keys.
I can easily work around this by setting the MARVIN_OPENAI_API_KEY to any value, but I think ti shouldn't be required (at least if setting the base URL?)
Reproduction
seeabove
Error
seeabove
Versions
2.1.3
Additional context
No response
The text was updated successfully, but these errors were encountered:
First check
Bug summary
one issue is that the
BASE_URL
option doesn't seem to be documented anywhere -- would be happy to contribute an example after I have this working wellthe main bug here is that if I have
~/.marvin/.env
like so:I get an error (much of the stacktrace omitted for brevity):
I can easily work around this by setting the
MARVIN_OPENAI_API_KEY
to any value, but I think ti shouldn't be required (at least if setting the base URL?)Reproduction
Error
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: