utils#

Helpers for model client for integrating models and parsing the output.

Functions

parse_embedding_response(api_response)

Parse embedding model output from the API response to EmbedderOutput.

parse_embedding_response(api_response) EmbedderOutput[source]#

Parse embedding model output from the API response to EmbedderOutput.

Follows the OpenAI API response pattern.