Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +4 -0
assistants.py
CHANGED
@@ -41,6 +41,10 @@ tools = {
|
|
41 |
"tavily_search_tool": tavily_search_tool,
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
44 |
def set_openai_client(openai_api_key):
|
45 |
global openai_client
|
46 |
openai_client = OpenAI(api_key=openai_api_key)
|
|
|
41 |
"tavily_search_tool": tavily_search_tool,
|
42 |
}
|
43 |
|
44 |
+
def get_openai_clientt():
|
45 |
+
global openai_client
|
46 |
+
return openai_client
|
47 |
+
|
48 |
def set_openai_client(openai_api_key):
|
49 |
global openai_client
|
50 |
openai_client = OpenAI(api_key=openai_api_key)
|