diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index a5529b86..0def63ab 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -46652,6 +46652,27 @@ paths: description: 'Filter models by output modality. Accepts a comma-separated list of modalities (text, image, embeddings, audio, video, rerank, decisions, speech, transcription) or "all" to include all models. Defaults to "text".' example: 'text' type: 'string' + - description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.' + in: 'query' + name: 'sort' + required: false + schema: + description: 'Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.' + enum: + - 'most-popular' + - 'newest' + - 'top-weekly' + - 'pricing-low-to-high' + - 'pricing-high-to-low' + - 'context-high-to-low' + - 'throughput-high-to-low' + - 'latency-low-to-high' + - 'intelligence-high-to-low' + - 'coding-high-to-low' + - 'agentic-high-to-low' + - 'design-arena-elo-high-to-low' + example: 'newest' + type: 'string' responses: '200': content: