bstraehle commited on
Commit
5de99f3
1 Parent(s): fb08ce8

Update assistants.py

Browse files
Files changed (1) hide show
  1. assistants.py +8 -4
assistants.py CHANGED
@@ -41,14 +41,18 @@ tools = {
41
  "tavily_search_tool": tavily_search_tool,
42
  }
43
 
44
- def get_openai_client():
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)
51
 
 
 
 
 
 
 
 
 
52
  def create_assistant():
53
  assistant = openai_client.beta.assistants.create(
54
  name="Python Coding Assistant",
 
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)
47
 
48
+ def get_assistant():
49
+ global assistant
50
+ return assistant
51
+
52
+ def get_thread():
53
+ global thread
54
+ return thread
55
+
56
  def create_assistant():
57
  assistant = openai_client.beta.assistants.create(
58
  name="Python Coding Assistant",