Jason
10/08/2024, 6:11 PMOPENAI_API_KEY
which contains it, or pass openai_api_key
as a named parameter
Is there a way to 'set the default model" using a custom API key? I believe this is due to our runtime settings init getting called after this attemptNate
10/08/2024, 7:48 PMJason
10/08/2024, 8:33 PMJason
10/08/2024, 9:19 PMJason
10/08/2024, 9:57 PM17:56:34.244 | WARNING | controlflow.llm.models - The default LLM model could not be created. ControlFlow will continue to work, but you must manually provide an LLM model for each agent. For more information, please see <https://controlflow.ai/guides/llms>. The error was:
1 validation error for ChatOpenAI
__root__
Did not find openai_api_key, please add an environment variable `OPENAI_API_KEY` which contains it, or pass `openai_api_key` as a named parameter. (type=value_error)
Jason
10/08/2024, 9:58 PM