Skip to content

Commit

Permalink
Merge pull request #264 from stackql/feature/provider
Browse files Browse the repository at this point in the history
updated openai
  • Loading branch information
jeffreyaven authored Oct 22, 2024
2 parents af55417 + ae0d450 commit fdc5588
Show file tree
Hide file tree
Showing 17 changed files with 197 additions and 86 deletions.
87 changes: 50 additions & 37 deletions providers/src/openai/v00.00.00000/services/assistants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2494,37 +2494,45 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ListAssistantsResponse'
objectKey: $.data
create_assistant:
operation:
$ref: '#/paths/~1assistants/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/AssistantObject'
get_assistant:
operation:
$ref: '#/paths/~1assistants~1{assistant_id}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/AssistantObject'
modify_assistant:
operation:
$ref: '#/paths/~1assistants~1{assistant_id}/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/AssistantObject'
delete_assistant:
operation:
$ref: '#/paths/~1assistants~1{assistant_id}/delete'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/DeleteAssistantResponse'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/assistants/methods/get_assistant'
- $ref: '#/components/x-stackQL-resources/assistants/methods/list_assistants'
insert:
- $ref: '#/components/x-stackQL-resources/assistants/methods/create_assistant'
update: []
update:
- $ref: '#/components/x-stackQL-resources/assistants/methods/modify_assistant'
replace: []
delete:
- $ref: '#/components/x-stackQL-resources/assistants/methods/delete_assistant'
threads:
Expand All @@ -2538,49 +2546,45 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ThreadObject'
create_thread_and_run:
operation:
$ref: '#/paths/~1threads~1runs/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/RunObject'
get_thread:
operation:
$ref: '#/paths/~1threads~1{thread_id}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ThreadObject'
modify_thread:
operation:
$ref: '#/paths/~1threads~1{thread_id}/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ThreadObject'
delete_thread:
operation:
$ref: '#/paths/~1threads~1{thread_id}/delete'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/DeleteThreadResponse'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/threads/methods/get_thread'
insert:
- $ref: '#/components/x-stackQL-resources/threads/methods/create_thread'
update: []
update:
- $ref: '#/components/x-stackQL-resources/threads/methods/modify_thread'
replace: []
delete:
- $ref: '#/components/x-stackQL-resources/threads/methods/delete_thread'
thread_and_runs:
id: openai.assistants.thread_and_runs
name: thread_and_runs
title: Thread And Runs
methods:
create_thread_and_run:
operation:
$ref: '#/paths/~1threads~1runs/post'
response:
mediaType: application/json
openAPIDocKey: '200'
sqlVerbs:
select: []
insert:
- $ref: '#/components/x-stackQL-resources/thread_and_runs/methods/create_thread_and_run'
update: []
delete: []
messages:
id: openai.assistants.messages
name: messages
Expand All @@ -2592,37 +2596,44 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ListMessagesResponse'
create_message:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1messages/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/MessageObject'
get_message:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1messages~1{message_id}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/MessageObject'
modify_message:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1messages~1{message_id}/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/MessageObject'
delete_message:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1messages~1{message_id}/delete'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/DeleteMessageResponse'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/messages/methods/get_message'
- $ref: '#/components/x-stackQL-resources/messages/methods/list_messages'
insert:
- $ref: '#/components/x-stackQL-resources/messages/methods/create_message'
update: []
update:
- $ref: '#/components/x-stackQL-resources/messages/methods/modify_message'
replace: []
delete:
- $ref: '#/components/x-stackQL-resources/messages/methods/delete_message'
runs:
Expand All @@ -2636,37 +2647,52 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ListRunsResponse'
objectKey: $.data
create_run:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1runs/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/RunObject'
get_run:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/RunObject'
modify_run:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/RunObject'
cancel_run:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1cancel/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/RunObject'
submit_tool_ouputs_to_run:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1submit_tool_outputs/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/RunObject'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/runs/methods/get_run'
- $ref: '#/components/x-stackQL-resources/runs/methods/list_runs'
insert:
- $ref: '#/components/x-stackQL-resources/runs/methods/create_run'
update: []
update:
- $ref: '#/components/x-stackQL-resources/runs/methods/modify_run'
replace: []
delete: []
run_steps:
id: openai.assistants.run_steps
Expand All @@ -2679,34 +2705,21 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ListRunStepsResponse'
get_run_step:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1steps~1{step_id}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/RunStepObject'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/run_steps/methods/get_run_step'
- $ref: '#/components/x-stackQL-resources/run_steps/methods/list_run_steps'
insert: []
update: []
delete: []
tool_ouputs_to_runs:
id: openai.assistants.tool_ouputs_to_runs
name: tool_ouputs_to_runs
title: Tool Ouputs To Runs
methods:
submit_tool_ouputs_to_run:
operation:
$ref: '#/paths/~1threads~1{thread_id}~1runs~1{run_id}~1submit_tool_outputs/post'
response:
mediaType: application/json
openAPIDocKey: '200'
sqlVerbs:
select: []
insert: []
update: []
replace: []
delete: []
paths:
/assistants:
Expand Down
3 changes: 3 additions & 0 deletions providers/src/openai/v00.00.00000/services/audio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ components:
insert:
- $ref: '#/components/x-stackQL-resources/speeches/methods/create_speech'
update: []
replace: []
delete: []
transcriptions:
id: openai.audio.transcriptions
Expand All @@ -393,6 +394,7 @@ components:
insert:
- $ref: '#/components/x-stackQL-resources/transcriptions/methods/create_transcription'
update: []
replace: []
delete: []
translations:
id: openai.audio.translations
Expand All @@ -410,6 +412,7 @@ components:
insert:
- $ref: '#/components/x-stackQL-resources/translations/methods/create_translation'
update: []
replace: []
delete: []
paths:
/audio/speech:
Expand Down
3 changes: 3 additions & 0 deletions providers/src/openai/v00.00.00000/services/audit_logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,14 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ListAuditLogsResponse'
objectKey: $.data
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/audit_logs/methods/list_audit_logs'
insert: []
update: []
replace: []
delete: []
paths:
/organization/audit_logs:
Expand Down
6 changes: 6 additions & 0 deletions providers/src/openai/v00.00.00000/services/batch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,31 +235,37 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/Batch'
list_batches:
operation:
$ref: '#/paths/~1batches/get'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/ListBatchesResponse'
objectKey: $.data
retrieve_batch:
operation:
$ref: '#/paths/~1batches~1{batch_id}/get'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/Batch'
cancel_batch:
operation:
$ref: '#/paths/~1batches~1{batch_id}~1cancel/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/Batch'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/batches/methods/retrieve_batch'
- $ref: '#/components/x-stackQL-resources/batches/methods/list_batches'
insert:
- $ref: '#/components/x-stackQL-resources/batches/methods/create_batch'
update: []
replace: []
delete: []
paths:
/batches:
Expand Down
12 changes: 7 additions & 5 deletions providers/src/openai/v00.00.00000/services/chat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1129,22 +1129,24 @@ components:
type: http
scheme: bearer
x-stackQL-resources:
chat_completions:
id: openai.chat.chat_completions
name: chat_completions
title: Chat Completions
completions:
id: openai.chat.completions
name: completions
title: Completions
methods:
create_chat_completion:
operation:
$ref: '#/paths/~1chat~1completions/post'
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/CreateChatCompletionResponse'
sqlVerbs:
select:
- $ref: '#/components/x-stackQL-resources/chat_completions/methods/create_chat_completion'
- $ref: '#/components/x-stackQL-resources/completions/methods/create_chat_completion'
insert: []
update: []
replace: []
delete: []
paths:
/chat/completions:
Expand Down
2 changes: 2 additions & 0 deletions providers/src/openai/v00.00.00000/services/completions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,13 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/CreateCompletionResponse'
sqlVerbs:
select: []
insert:
- $ref: '#/components/x-stackQL-resources/completions/methods/create_completion'
update: []
replace: []
delete: []
paths:
/completions:
Expand Down
2 changes: 2 additions & 0 deletions providers/src/openai/v00.00.00000/services/embeddings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,13 @@ components:
response:
mediaType: application/json
openAPIDocKey: '200'
schemaRef: '#/components/schemas/CreateEmbeddingResponse'
sqlVerbs:
select: []
insert:
- $ref: '#/components/x-stackQL-resources/embeddings/methods/create_embedding'
update: []
replace: []
delete: []
paths:
/embeddings:
Expand Down
Loading

0 comments on commit fdc5588

Please sign in to comment.