|
@@ -17,7 +17,7 @@ if __name__ == "__main__":
|
|
|
assistant = client.beta.assistants.create(
|
|
|
name="Assistant Demo",
|
|
|
instructions="you are a personal assistant, file content could be retrieved to assist the conversation.",
|
|
|
- model="gpt-4o",
|
|
|
+ model="deepseek-chat",
|
|
|
tools=[
|
|
|
{"type": "file_search"},
|
|
|
],
|
|
@@ -74,3 +74,18 @@ if __name__ == "__main__":
|
|
|
else:
|
|
|
print("in progress...\n")
|
|
|
time.sleep(5)
|
|
|
+"""
|
|
|
+
|
|
|
+from openai import AssistantEventHandler, AsyncOpenAI, AsyncAssistantEventHandler
|
|
|
+
|
|
|
+
|
|
|
+asynopenai = AsyncOpenAI(
|
|
|
+ api_key="sk-7QUuPsUmPB6piU54Tr0aJWFfFBo_dZtyfR52wc8BHHT3BlbkFJ4c_ee94b3vS9Yrbxp_JaiixmgyMjZ9lGomnP8fg9IA"
|
|
|
+)
|
|
|
+
|
|
|
+assistant = await asynopenai.beta.assistants.retrieve("asst_K0tzaQaDABQ7wELwb27SqadA")
|
|
|
+
|
|
|
+print(assistant)
|
|
|
+
|
|
|
+
|
|
|
+"""
|