@@ -4896,13 +4896,13 @@ paths:
4896
4896
main();
4897
4897
response : |
4898
4898
event: thread.run.created
4899
- data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"usage":null}
4899
+ data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null," usage":null,"response_format":"auto","tool_choice":"auto"} }
4900
4900
4901
4901
event: thread.run.queued
4902
- data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"usage":null}
4902
+ data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"queued","started_at":null,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null," usage":null,"response_format":"auto","tool_choice":"auto"} }
4903
4903
4904
4904
event: thread.run.in_progress
4905
- data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710348075,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"usage":null}
4905
+ data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"in_progress","started_at":1710348075,"expires_at":1710348675,"cancelled_at":null,"failed_at":null,"completed_at":null,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null," usage":null,"response_format":"auto","tool_choice":"auto"} }
4906
4906
4907
4907
event: thread.run.step.created
4908
4908
data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"in_progress","cancelled_at":null,"completed_at":null,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":null}
@@ -4934,7 +4934,7 @@ paths:
4934
4934
data: {"id":"step_001","object":"thread.run.step","created_at":1710348076,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710348077,"expires_at":1710348675,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_001"}},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}}
4935
4935
4936
4936
event: thread.run.completed
4937
- data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710348075,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710348077,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31}}
4937
+ data: {"id":"run_123","object":"thread.run","created_at":1710348075,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710348075,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710348077,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null," usage":{"prompt_tokens":20,"completion_tokens":11,"total_tokens":31},"response_format":"auto","tool_choice":"auto" }}
4938
4938
4939
4939
event: done
4940
4940
data: [DONE]
@@ -5420,7 +5420,7 @@ paths:
5420
5420
data: {"id":"step_002","object":"thread.run.step","created_at":1710352476,"run_id":"run_123","assistant_id":"asst_123","thread_id":"thread_123","type":"message_creation","status":"completed","cancelled_at":null,"completed_at":1710352477,"expires_at":1710353047,"failed_at":null,"last_error":null,"step_details":{"type":"message_creation","message_creation":{"message_id":"msg_002"}},"usage":{"prompt_tokens":329,"completion_tokens":18,"total_tokens":347}}
5421
5421
5422
5422
event: thread.run.completed
5423
- data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710352475,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710352477,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"usage":{"prompt_tokens":620 ,"completion_tokens":42 ,"total_tokens":662 }}
5423
+ data: {"id":"run_123","object":"thread.run","created_at":1710352447,"assistant_id":"asst_123","thread_id":"thread_123","status":"completed","started_at":1710352475,"expires_at":null,"cancelled_at":null,"failed_at":null,"completed_at":1710352477,"required_action":null,"last_error":null,"model":"gpt-4-turbo","instructions":null,"tools":[{"type":"function","function":{"name":"get_current_weather","description":"Get the current weather in a given location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"},"unit":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location"]}}}],"metadata":{},"temperature":1.0,"top_p":1.0,"max_completion_tokens":null,"max_prompt_tokens":null,"truncation_strategy":{"type":"auto","last_messages":null},"incomplete_details":null," usage":{"prompt_tokens":20 ,"completion_tokens":11 ,"total_tokens":31},"response_format":"auto","tool_choice":"auto" }}
5424
5424
5425
5425
event: done
5426
5426
data: [DONE]
@@ -5788,6 +5788,7 @@ paths:
5788
5788
curl https://api.openai.com/v1/vector_stores \
5789
5789
-H "Authorization: Bearer $OPENAI_API_KEY" \
5790
5790
-H "Content-Type: application/json" \
5791
+ -H "OpenAI-Beta: assistants=v2"
5791
5792
python : |
5792
5793
from openai import OpenAI
5793
5794
client = OpenAI()
@@ -5870,6 +5871,7 @@ paths:
5870
5871
curl https://api.openai.com/v1/vector_stores \
5871
5872
-H "Authorization: Bearer $OPENAI_API_KEY" \
5872
5873
-H "Content-Type: application/json" \
5874
+ -H "OpenAI-Beta: assistants=v2"
5873
5875
-d '{
5874
5876
"name": "Support FAQ"
5875
5877
}'
@@ -5940,6 +5942,7 @@ paths:
5940
5942
curl https://api.openai.com/v1/vector_stores/vs_abc123 \
5941
5943
-H "Authorization: Bearer $OPENAI_API_KEY" \
5942
5944
-H "Content-Type: application/json" \
5945
+ -H "OpenAI-Beta: assistants=v2"
5943
5946
python : |
5944
5947
from openai import OpenAI
5945
5948
client = OpenAI()
@@ -6002,6 +6005,7 @@ paths:
6002
6005
curl https://api.openai.com/v1/vector_stores/vs_abc123 \
6003
6006
-H "Authorization: Bearer $OPENAI_API_KEY" \
6004
6007
-H "Content-Type: application/json" \
6008
+ -H "OpenAI-Beta: assistants=v2"
6005
6009
-d '{
6006
6010
"name": "Support FAQ"
6007
6011
}'
@@ -6075,6 +6079,7 @@ paths:
6075
6079
curl https://api.openai.com/v1/vector_stores/vs_abc123 \
6076
6080
-H "Authorization: Bearer $OPENAI_API_KEY" \
6077
6081
-H "Content-Type: application/json" \
6082
+ -H "OpenAI-Beta: assistants=v2" \
6078
6083
-X DELETE
6079
6084
python : |
6080
6085
from openai import OpenAI
@@ -6164,6 +6169,7 @@ paths:
6164
6169
curl https://api.openai.com/v1/vector_stores/vs_abc123/files \
6165
6170
-H "Authorization: Bearer $OPENAI_API_KEY" \
6166
6171
-H "Content-Type: application/json" \
6172
+ -H "OpenAI-Beta: assistants=v2"
6167
6173
python : |
6168
6174
from openai import OpenAI
6169
6175
client = OpenAI()
@@ -6318,6 +6324,7 @@ paths:
6318
6324
curl https://api.openai.com/v1/vector_stores/vs_abc123/files/file-abc123 \
6319
6325
-H "Authorization: Bearer $OPENAI_API_KEY" \
6320
6326
-H "Content-Type: application/json" \
6327
+ -H "OpenAI-Beta: assistants=v2"
6321
6328
python : |
6322
6329
from openai import OpenAI
6323
6330
client = OpenAI()
@@ -6536,6 +6543,7 @@ paths:
6536
6543
curl https://api.openai.com/v1/vector_stores/vs_abc123/files_batches/vsfb_abc123 \
6537
6544
-H "Authorization: Bearer $OPENAI_API_KEY" \
6538
6545
-H "Content-Type: application/json" \
6546
+ -H "OpenAI-Beta: assistants=v2"
6539
6547
python : |
6540
6548
from openai import OpenAI
6541
6549
client = OpenAI()
@@ -6710,6 +6718,7 @@ paths:
6710
6718
curl https://api.openai.com/v1/vector_stores/vs_abc123/files_batches/vsfb_abc123/files \
6711
6719
-H "Authorization: Bearer $OPENAI_API_KEY" \
6712
6720
-H "Content-Type: application/json" \
6721
+ -H "OpenAI-Beta: assistants=v2"
6713
6722
python : |
6714
6723
from openai import OpenAI
6715
6724
client = OpenAI()
0 commit comments