Skip to content

Commit acb4662

Browse files
bleddenclaude
andcommitted
Remove unused streaming response type from embeddings endpoint (fixes #98)
The embeddings endpoint had a text/event-stream response type defined in the OpenAPI spec, but the spec itself noted: "Not used for embeddings - embeddings do not support streaming." This unused response type caused Speakeasy to generate: type CreateEmbeddingsResponse = CreateEmbeddingsResponseBody | string; Which forces developers to write unnecessary type guards. After regenerating with Speakeasy, the type will be: type CreateEmbeddingsResponse = CreateEmbeddingsResponseBody; Allowing direct access to response.data[0].embedding without checking if the response is a string first. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent a96ad34 commit acb4662

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.speakeasy/in.openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6716,11 +6716,6 @@ paths:
67166716
- object
67176717
- data
67186718
- model
6719-
text/event-stream:
6720-
schema:
6721-
type: string
6722-
description: Not used for embeddings - embeddings do not support streaming
6723-
x-speakeasy-sse-sentinel: '[DONE]'
67246719
'400':
67256720
description: Bad Request - Invalid request parameters or malformed input
67266721
content:

0 commit comments

Comments
 (0)