Closed hedb closed 3 months ago
Assistant access doesn't work without OPENAI_API_KEY env variable
what do you mean by "doesn't work", does it crash? if so can you share a stack trace?
My bug I used : return openai.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run_id) instead of return client.beta.threads.runs.retrieve(thread_id=thread_id, run_id=run_id)
which caused a mess
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
Assistant access doesn't work without OPENAI_API_KEY env variable, preventing from accessing assistants in different projects.
Why is it needed? I have two assistant that i need to access from slack bot they are located in different projects
I can't rely on the environment variable - as the api_key needed is different.
To Reproduce
Code snippets
OS
Mac
Python version
3.9
Library version
1.35.7