openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
specification/client/models/conversations.models.tsp
30lines · modecode
| 1 | import "../../base/typespec/conversations/main.tsp"; |
| 2 | import "./common.models.tsp"; |
| 3 | import "@azure-tools/typespec-client-generator-core"; |
| 4 | |
| 5 | using Azure.ClientGenerator.Core; |
| 6 | using TypeSpec.Http; |
| 7 | |
| 8 | namespace OpenAI; |
| 9 | |
| 10 | alias ConversationItemCollectionOrderQueryParameter = { |
| 11 | /** |
| 12 | * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` |
| 13 | * for descending order. |
| 14 | */ |
| 15 | @query order?: ConversationItemCollectionOrder; |
| 16 | }; |
| 17 | |
| 18 | union ConversationItemCollectionOrder { |
| 19 | string, |
| 20 | Ascending: "asc", |
| 21 | Descending: "desc", |
| 22 | } |
| 23 | |
| 24 | @access(Access.public) |
| 25 | @usage(Usage.input) |
| 26 | model ConversationItemCollectionOptions { |
| 27 | ...DotNetCollectionAfterQueryParameter, |
| 28 | ...DotNetCollectionLimitQueryParameter, |
| 29 | ...ConversationItemCollectionOrderQueryParameter, |
| 30 | } |