Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Added custom_attributes to additional_keys which can be sent to athina (#8518)

vivek-athinafd0769f2ed90
diff --git a/docs/my-website/docs/observability/athina_integration.md b/docs/my-website/docs/observability/athina_integration.md
index f7c99a4a9c6..4994d553c62 100644
--- a/docs/my-website/docs/observability/athina_integration.md
+++ b/docs/my-website/docs/observability/athina_integration.md
@@ -78,7 +78,7 @@ Following are the allowed fields in metadata, their types, and their description
* `context: Optional[Union[dict, str]]` - This is the context used as information for the prompt. For RAG applications, this is the "retrieved" data. You may log context as a string or as an object (dictionary).
* `expected_response: Optional[str]` - This is the reference response to compare against for evaluation purposes. This is useful for segmenting inference calls by expected response.
* `user_query: Optional[str]` - This is the user's query. For conversational applications, this is the user's last message.
-
+* `custom_attributes: Optional[dict]` - This is a dictionary of custom attributes. This is useful for additional information about the inference.
## Using a self hosted deployment of Athina
diff --git a/litellm/integrations/athina.py b/litellm/integrations/athina.py
index 250b384c75e..754e980c2ad 100644
--- a/litellm/integrations/athina.py
+++ b/litellm/integrations/athina.py
@@ -23,6 +23,7 @@ class AthinaLogger:
"context",
"expected_response",
"user_query",
+ "custom_attributes",
]
def log_event(self, kwargs, response_obj, start_time, end_time, print_verbose):