Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

second test Filter SDK Repositories error throw #3501

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion specification/ai/OpenAI.Assistants/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Azure.AI.OpenAI {
]>
)
@service({
title: "Azure OpenAI",
title: "Azure OpenAI test",
})
@server(
"{endpoint}",
Expand Down
12 changes: 9 additions & 3 deletions specification/ai/OpenAI.Assistants/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@ options:
custom-types: "FileListResponse,OpenAIPageableListOfAssistant,OpenAIPageableListOfRunStep,OpenAIPageableListOfThreadMessage,OpenAIPageableListOfThreadRun,OpenAIPageableListOfVectorStore,OpenAIPageableListOfVectorStoreFile"
flavor: azure
"@azure-tools/typespec-ts":
package-dir: "openai"
package-dir: "openai-assistants"
generateMetadata: false
generateTest: false
generateSample: true
generateTest: true
azureSdkForJs: true
isModularLibrary: true
hierarchyClient: false
experimentalExtensibleEnums: true
emitter-output-dir: "{project-root}/sdk/openai/openai-assistants"
flavor: "azure"
flavor: "azure"
packageDetails:
name: "@azure/openai-assistants"
flavor: azure
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Azure OpenAI",
"title": "Azure OpenAI test",
"version": "2024-02-15-preview",
"description": "Azure OpenAI APIs for Assistants.",
"x-typespec-generated": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Azure OpenAI",
"title": "Azure OpenAI test",
"version": "2024-05-01-preview",
"description": "Azure OpenAI APIs for Assistants.",
"x-typespec-generated": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"swagger": "2.0",
"info": {
"title": "Azure OpenAI",
"title": "Azure OpenAI test",
"version": "2024-07-01-preview",
"description": "Azure OpenAI APIs for Assistants.",
"x-typespec-generated": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
title: Azure OpenAI
title: Azure OpenAI test
description: Azure OpenAI APIs for Assistants.
version: 2024-02-15-preview
tags: []
Expand All @@ -18,12 +18,12 @@ paths:
schema:
$ref: '#/components/schemas/Assistant'
requestBody:
description: The request details to use when creating a new assistant.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AssistantCreationOptions'
description: The request details to use when creating a new assistant.
get:
operationId: listAssistants
description: Gets a list of assistants that were previously created.
Expand All @@ -36,29 +36,25 @@ paths:
type: integer
format: int32
default: 20
explode: false
- name: order
in: query
required: false
description: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
schema:
$ref: '#/components/schemas/ListSortOrder'
default: desc
explode: false
- name: after
in: query
required: false
description: A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
schema:
type: string
explode: false
- name: before
in: query
required: false
description: A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
schema:
type: string
explode: false
responses:
'200':
description: The requested list of assistants.
Expand Down Expand Up @@ -129,12 +125,12 @@ paths:
schema:
$ref: '#/components/schemas/Assistant'
requestBody:
description: The request details to use when modifying an existing assistant.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAssistantOptions'
description: The request details to use when modifying an existing assistant.
delete:
operationId: deleteAssistant
description: Deletes an assistant.
Expand Down Expand Up @@ -163,7 +159,6 @@ paths:
description: A value that, when provided, limits list results to files matching the corresponding purpose.
schema:
$ref: '#/components/schemas/FilePurpose'
explode: false
responses:
'200':
description: The requested list of files.
Expand Down Expand Up @@ -269,12 +264,12 @@ paths:
schema:
$ref: '#/components/schemas/AssistantThread'
requestBody:
description: The details used to create a new assistant thread.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AssistantThreadCreationOptions'
description: The details used to create a new assistant thread.
/threads/runs:
post:
operationId: createThreadAndRun
Expand All @@ -288,12 +283,12 @@ paths:
schema:
$ref: '#/components/schemas/ThreadRun'
requestBody:
description: The details used when creating and immediately running a new assistant thread.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAndRunThreadOptions'
description: The details used when creating and immediately running a new assistant thread.
/threads/{threadId}:
get:
operationId: getThread
Expand Down Expand Up @@ -330,12 +325,12 @@ paths:
schema:
$ref: '#/components/schemas/AssistantThread'
requestBody:
description: The details used to update an existing assistant thread.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAssistantThreadOptions'
description: The details used to update an existing assistant thread.
delete:
operationId: deleteThread
description: Deletes an existing thread.
Expand Down Expand Up @@ -372,12 +367,12 @@ paths:
schema:
$ref: '#/components/schemas/ThreadMessage'
requestBody:
description: A single message within an assistant thread, as provided during that thread's creation for its initial state.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ThreadMessageOptions'
description: A single message within an assistant thread, as provided during that thread's creation for its initial state.
get:
operationId: listMessages
description: Gets a list of messages that exist on a thread.
Expand All @@ -396,29 +391,25 @@ paths:
type: integer
format: int32
default: 20
explode: false
- name: order
in: query
required: false
description: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
schema:
$ref: '#/components/schemas/ListSortOrder'
default: desc
explode: false
- name: after
in: query
required: false
description: A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
schema:
type: string
explode: false
- name: before
in: query
required: false
description: A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
schema:
type: string
explode: false
responses:
'200':
description: The requested list of messages.
Expand Down Expand Up @@ -532,12 +523,12 @@ paths:
schema:
$ref: '#/components/schemas/ThreadRun'
requestBody:
description: The details used when creating a new run of an assistant thread.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateRunOptions'
description: The details used when creating a new run of an assistant thread.
get:
operationId: listRuns
description: Gets a list of runs for a specified thread.
Expand All @@ -556,29 +547,25 @@ paths:
type: integer
format: int32
default: 20
explode: false
- name: order
in: query
required: false
description: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
schema:
$ref: '#/components/schemas/ListSortOrder'
default: desc
explode: false
- name: after
in: query
required: false
description: A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
schema:
type: string
explode: false
- name: before
in: query
required: false
description: A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
schema:
type: string
explode: false
responses:
'200':
description: The requested list of thread runs.
Expand Down Expand Up @@ -722,29 +709,25 @@ paths:
type: integer
format: int32
default: 20
explode: false
- name: order
in: query
required: false
description: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
schema:
$ref: '#/components/schemas/ListSortOrder'
default: desc
explode: false
- name: after
in: query
required: false
description: A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
schema:
type: string
explode: false
- name: before
in: query
required: false
description: A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
schema:
type: string
explode: false
responses:
'200':
description: The requested list of run steps.
Expand Down
Loading
Loading