Closed rustikus closed 3 months ago
OK, it seems this was a config problem
For reference:
If you are using an api_key_cmd
for a custom api_host_cmd
in your config.
If you want to use another OPENAI_API_KEY
for the default OpenAI API you also need to set up the environment variable to the default endpoint OPENAI_API_HOST=api.openai.com
Hi,
in my .lua config i set the following values:
api_host_cmd
andapi_key_cmd
That works fine in general but if I also set the environment variable
OPENAI_API_KEY
the following error occurs:Authentication Error, local variable 'valid_token_dict' referenced before assignment
Not sure if I am missing something.
Thanks!