Commit acb4662
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
1 file changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6716 | 6716 | | |
6717 | 6717 | | |
6718 | 6718 | | |
6719 | | - | |
6720 | | - | |
6721 | | - | |
6722 | | - | |
6723 | | - | |
6724 | 6719 | | |
6725 | 6720 | | |
6726 | 6721 | | |
| |||
0 commit comments