Skip to content
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
bf137b8
cleaned up config file
jpalvarezl Jun 18, 2024
bcc78b8
reverted name
jpalvarezl Jun 18, 2024
051fe79
Restored names and verified example adding behaviour for openapi2 emi…
jpalvarezl Jun 19, 2024
5687fea
Added example JSON files and the readme file
jpalvarezl Jun 19, 2024
1044384
Added examples for past releases
jpalvarezl Jun 19, 2024
31a789b
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jun 19, 2024
059ed39
Added more documentation to the script
jpalvarezl Jun 19, 2024
45f60fa
Merge branch 'jpalvarezl/issue_29286_assistants_json_examples' of htt…
jpalvarezl Jun 19, 2024
5f53382
Readme corrections
jpalvarezl Jun 19, 2024
16b0ba3
More readme corrections
jpalvarezl Jun 19, 2024
08dc091
Renamed retrieveAssistants examples to getAssistants to match TSP def…
jpalvarezl Jun 19, 2024
6d29d3b
Removed some swagger files
jpalvarezl Jun 20, 2024
f1b3975
create_assistants json corrections
jpalvarezl Jun 20, 2024
1d2f760
wip
jpalvarezl Jun 20, 2024
b9cc526
Get Assistants
jpalvarezl Jun 20, 2024
ef1e98c
WIP
jpalvarezl Jun 20, 2024
d1abb2b
File operations
jpalvarezl Jun 20, 2024
5343231
Files JSON examples
jpalvarezl Jun 20, 2024
941f3cd
wip
jpalvarezl Jun 20, 2024
fe0963c
wip
jpalvarezl Jun 20, 2024
9d4023a
More various fixes
jpalvarezl Jun 20, 2024
6ebf0aa
wip
jpalvarezl Jun 20, 2024
8384bb5
wip
jpalvarezl Jun 20, 2024
9e7495f
wip
jpalvarezl Jun 20, 2024
aaad749
removing bodyRoot decorator
jpalvarezl Jun 20, 2024
1125a13
Checking if things are actually fixed
jpalvarezl Jun 20, 2024
03d2bf5
Made expandable nullable enum into 'null' instead of null
jpalvarezl Jun 20, 2024
a7e5561
Revert "Made expandable nullable enum into 'null' instead of null"
jpalvarezl Jun 20, 2024
6fc5b15
WIP
jpalvarezl Jun 21, 2024
e437a1a
wip
jpalvarezl Jun 21, 2024
cd408bb
Possible solution to bad @body usage
jpalvarezl Jun 21, 2024
ff1acc2
Found better solution for version added mismatch createMessage
jpalvarezl Jun 21, 2024
9c6fede
wip
jpalvarezl Jun 21, 2024
73f2949
WIP
jpalvarezl Jun 21, 2024
564439f
Started with vector store stuff
jpalvarezl Jun 21, 2024
91eb6f7
More fixes for vector store stuff
jpalvarezl Jun 21, 2024
ab6d862
More fixes
jpalvarezl Jun 21, 2024
e475d00
Last fixes for vector store batch files
jpalvarezl Jun 21, 2024
39fdbc6
Using string 'null' instread of JSON null
jpalvarezl Jun 21, 2024
841565a
Revert "Using string 'null' instread of JSON null"
jpalvarezl Jun 21, 2024
a6605ea
Corrected operationId
jpalvarezl Jun 21, 2024
6f62d06
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jun 24, 2024
df374bb
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jun 25, 2024
ab876a1
trying out null as a string
jpalvarezl Jun 25, 2024
2fc96a5
Revert "trying out null as a string"
jpalvarezl Jun 25, 2024
3dbb723
Stringified nulls to make CI happy
jpalvarezl Jun 25, 2024
532e336
Changed the value of instructions for ThreadRun examples. Field not n…
jpalvarezl Jun 25, 2024
56d8bb8
Addressing metadata issue
jpalvarezl Jun 25, 2024
a6811ec
Revert "Stringified nulls to make CI happy"
jpalvarezl Jun 25, 2024
62feec4
Reverting left over stuff
jpalvarezl Jun 25, 2024
ca2cde4
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jun 26, 2024
d804921
TSP formatter
jpalvarezl Jun 26, 2024
f95d533
Prettified JSON
jpalvarezl Jun 26, 2024
88c8075
Added suppresion to work around bug
jpalvarezl Jun 27, 2024
8e6e882
Removed unnecessary example files
jpalvarezl Jun 27, 2024
44487e6
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jun 27, 2024
48ed512
Removed convenience scripts
jpalvarezl Jun 27, 2024
a31f2a0
Using bodyRoot again
jpalvarezl Jun 28, 2024
7b26173
Revert "Using bodyRoot again"
jpalvarezl Jun 28, 2024
a526ad4
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jul 2, 2024
3d997c7
Using BodyParameter in createMessage op
jpalvarezl Jul 2, 2024
dd40d47
The CI seems stuck
jpalvarezl Jul 2, 2024
919e50f
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jul 9, 2024
a0d8056
Merge branch 'main' into jpalvarezl/issue_29286_assistants_json_examples
jpalvarezl Jul 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"title": "Cancels a run that is `in_progress`.\n",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"threadId": "thread_eRNwflE3ncDYak1np6MdMHJh",
"runId": "run_HsO8tYM4K5AAMAHgK0J3om8Q"
},
"responses": {
"200": {
"body": {
"id": "run_HsO8tYM4K5AAMAHgK0J3om8Q",
"object": "thread.run",
"created_at": 1699076126,
"assistant_id": "asst_BUf53eW0aua3EjHTyO3P3evb",
"thread_id": "thread_eRNwflE3ncDYak1np6MdMHJh",
"status": "cancelling",
"started_at": 1699076126,
"expires_at": 1699076726,
"cancelled_at": null,
"failed_at": null,
"completed_at": null,
"last_error": null,
"model": "gpt-4-1106",
"instructions": "You solve math problems.",
"tools": [
{
"type": "code_interpreter"
}
],
"incomplete_details": "null",
"metadata": {},
"usage": null
}
}
},
"operationId": "CancelRun"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,37 @@
{
"title": "Assistants_CreateAssistant",
"operationId": "Assistants_CreateAssistant"
"title": "Create an assistant with a model and instructions.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"body": {
"name": "Math Tutor",
"instructions": "When a customer asks about a specific math problem, use Python to evaluate their query.",
"tools": [
{
"type": "code_interpreter"
}
],
"model": "gpt-4-1106-preview"
}
},
"responses": {
"200": {
"body": {
"id": "asst_4lMdCUN4lS2SQcHEy9CM1QIt",
"object": "assistant",
"created_at": 1718875084,
"name": "Math Tutor",
"description": null,
"model": "gpt-4-1106-preview",
"instructions": "When a customer asks about a specific math problem, use Python to evaluate their query.",
"tools": [
{
"type": "code_interpreter"
}
],
"metadata": {}
}
}
},
"operationId": "CreateAssistant"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Create an assistant file.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"assistant_id": "asst_diz3BOIsXHMnqNnoMCyO9jlA",
"body": {
"file_id": "assistant-Vau3gDQ1MfiBJk4flihOxwZX"
}
},
"responses": {
"200": {
"body": {
"id": "assistant-Vau3gDQ1MfiBJk4flihOxwZX",
"object": "assistant.file",
"created_at": 1707324164,
"assistant_id": "asst_diz3BOIsXHMnqNnoMCyO9jlA"
}
}
},
"operationId": "CreateAssistantFile"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"title": "Create a message.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"threadId": "thread_v7V4csrNOxtNmgcwGg496Smx",
"body": {
"role": "user",
"content": "What is the cube root of the sum of 12, 14, 1234, 4321, 90000, 123213541223, 443123123124, 5423324234, 234324324234, 653434534545, 200000000, 98237432984, 99999999, 99999999999, 220000000000, 3309587702? Give me the answer rounded to the nearest integer without commas or spaces."
}
},
"responses": {
"200": {
"body": {
"id": "msg_as3XIk1tpVP3hdHjWBGg3uG4",
"object": "thread.message",
"created_at": 1707298421,
"thread_id": "thread_v7V4csrNOxtNmgcwGg496Smx",
"role": "user",
"content": [
{
"type": "text",
"text": {
"value": "What is the cube root of the sum of 12, 14, 1234, 4321, 90000, 123213541223, 443123123124, 5423324234, 234324324234, 653434534545, 200000000, 98237432984, 99999999, 99999999999, 220000000000, 3309587702? Give me the answer rounded to the nearest integer without commas or spaces.",
"annotations": []
}
}
],
"status": "completed",
"incomplete_details": null,
"incomplete_at": null,
"completed_at": 1707298439,
"assistant_id": null,
"run_id": null,
"metadata": {}
}
}
},
"operationId": "CreateMessage"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"title": "Create a run.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"threadId": "thread_2CTH1wOJezLOA3QRefyO3wyk",
"body": {
"assistant_id": "asst_w35g5ODgBl2U3KW417deY1QI"
}
},
"responses": {
"200": {
"body": {
"id": "run_dmC5IgLBfaK8gBy0FKIXGtpr",
"object": "thread.run",
"created_at": 1707301142,
"assistant_id": "asst_w35g5ODgBl2U3KW417deY1QI",
"thread_id": "thread_2CTH1wOJezLOA3QRefyO3wyk",
"status": "queued",
"incomplete_details": "null",
"usage": null,
"started_at": null,
"expires_at": 1707301742,
"cancelled_at": null,
"failed_at": null,
"completed_at": null,
"last_error": null,
"model": "gpt-4-1106-preview",
"instructions": "You are an AI model that empowers every person and every organization on the planet to achieve more.",
"tools": [],
"metadata": {}
}
}
},
"operationId": "CreateRun"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "Creates a thread.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"body": {}
},
"responses": {
"200": {
"body": {
"id": "thread_v7V4csrNOxtNmgcwGg496Smx",
"object": "thread",
"created_at": 1707297136,
"metadata": {}
}
}
},
"operationId": "CreateThread"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"title": "Create a thread and run it in one request.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"body": {
"assistant_id": "{{assistants.id}}"
}
},
"responses": {
"200": {
"body": {
"id": "run_jwY1tMUeOjSpq0Swwm6JqSi6",
"object": "thread.run",
"created_at": 1707300252,
"assistant_id": "asst_se10QpYqDv7RQx13zdpskKlz",
"thread_id": "thread_7CJfaYBtuRIOSksocRrYNQGV",
"status": "queued",
"started_at": null,
"expires_at": 1707300852,
"cancelled_at": null,
"failed_at": null,
"completed_at": null,
"last_error": null,
"model": "gpt-4-1106-preview",
"instructions": "You are an AI model that empowers every person and every organization on the planet to achieve more.",
"tools": [],
"usage": null,
"incomplete_details": "null",
"metadata": {}
}
}
},
"operationId": "CreateThreadAndRun"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Deletes an assistant.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"assistantId": "asst_4nsG2qgNzimRPE7MazXTXbU7"
},
"responses": {
"200": {
"body": {
"id": "asst_4nsG2qgNzimRPE7MazXTXbU7",
"object": "assistant.deleted",
"deleted": true
}
}
},
"operationId": "DeleteAssistant"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"title": "Deletes an AssistantFile.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"assistant_id": "asst_diz3BOIsXHMnqNnoMCyO9jlA",
"file_id": "assistant-Vau3gDQ1MfiBJk4flihOxwZX"
},
"responses": {
"200": {
"body": {
"id": "assistant-Vau3gDQ1MfiBJk4flihOxwZX",
"object": "assistant.file.deleted",
"deleted": true
}
}
},
"operationId": "DeleteAssistantFile"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Delete a previously uploaded file.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"fileId": "assistant-uzdgnx4i8PPe96zgXQ1vJ9W3"
},
"responses": {
"200": {
"body": {
"object": "file",
"deleted": true,
"id": "assistant-uzdgnx4i8PPe96zgXQ1vJ9W3"
}
}
},
"operationId": "DeleteFile"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Deletes a thread.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"threadId": "thread_v7V4csrNOxtNmgcwGg496Smx"
},
"responses": {
"200": {
"body": {
"id": "thread_v7V4csrNOxtNmgcwGg496Smx",
"object": "thread.deleted",
"deleted": true
}
}
},
"operationId": "DeleteThread"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Retrieves an assistant.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"assistantId": "asst_4nsG2qgNzimRPE7MazXTXbU7"
},
"responses": {
"200": {
"body": {
"id": "asst_4lMdCUN4lS2SQcHEy9CM1QIt",
"object": "assistant",
"created_at": 1718875084,
"name": "Math Tutor",
"description": null,
"model": "gpt-4-1106-preview",
"instructions": "When a customer asks about a specific math problem, use Python to evaluate their query.",
"tools": [
{
"type": "code_interpreter"
}
],
"metadata": {}
}
}
},
"operationId": "GetAssistant"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"title": "Retrieves an AssistantFile.",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"assistant_id": "asst_diz3BOIsXHMnqNnoMCyO9jlA",
"file_id": "assistant-Vau3gDQ1MfiBJk4flihOxwZX"
},
"responses": {
"200": {
"body": {
"id": "assistant-Vau3gDQ1MfiBJk4flihOxwZX",
"object": "assistant.file",
"created_at": 1707324164,
"assistant_id": "asst_diz3BOIsXHMnqNnoMCyO9jlA"
}
}
},
"operationId": "GetAssistantFile"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "Returns a file",
"parameters": {
"endpoint": "{endpoint}",
"api-version": "2024-02-15-preview",
"fileId": "assistant-uzdgnx4i8PPe96zgXQ1vJ9W3"
},
"responses": {
"200": {
"body": {
"object": "file",
"id": "assistant-uzdgnx4i8PPe96zgXQ1vJ9W3",
"purpose": "assistants",
"filename": "test78686269-a3d7-4c96-be67-fecdf3f39de8.txt",
"bytes": 4,
"created_at": 1718886199
}
}
},
"operationId": "GetFile"
}
Loading