Running an example #96
vikram-raju
started this conversation in
General
Replies: 1 comment 3 replies
-
If you're running in a conda or python env the key needs to be where you are creating the instance of TinyTroupe (the client), not in the So in os.environ["OPENAI_KEY"] = "1234567890" factory_description = "A department store." factory = TinyPersonFactory(factory_description) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I keep getting the error on unable to read openai or azure openai keys.
2025-02-18 00:35:20,454 - tinytroupe - ERROR - Error while generating agent specification: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
Might be silly, anything I'm doing wrong? Have the key in env file, config.ini file, still stuck at this.
Beta Was this translation helpful? Give feedback.
All reactions