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

update: return API embedding response #6

Merged
merged 2 commits into from
Nov 30, 2023
Merged

Conversation

milosgajdos
Copy link
Owner

Originally Embeddings method would return an object which was a result of a conversion to a smaller type which only contained the embeddings. This prevents the clients from accessing the API response fields which is not ideal.

This commit reverts to returning deserialized API responses and instead provides an exported func in each package that lets the consumers to convert the object into a higher level embedding type defined in the module root.

Originally Embeddings method would return an object
which was a result of a conversion to a smaller type which only
contained the embeddings. This prevents the clients from accessing the
API response fields which is not ideal.

This commit reverts to returning deserialized API responses and instead
provides an exported func in each package that lets the consumers to
convert the object into a higher level embedding type defined in the
module root.

Signed-off-by: Milos Gajdos <[email protected]>
@milosgajdos milosgajdos merged commit 329b912 into main Nov 30, 2023
@milosgajdos milosgajdos deleted the return-raw-response branch November 30, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant