in instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py [0:0]
def _get_embeddings_attributes_from_response(model: str, usage: CompletionUsage) -> Attributes:
return {
GEN_AI_RESPONSE_MODEL: model,
GEN_AI_USAGE_INPUT_TOKENS: usage.prompt_tokens,
}