Skip to content

Commit

Permalink
Added custom_attributes to additional_keys which can be sent to athina (
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-athina authored and abhijitherekar committed Feb 20, 2025
1 parent 0736a3f commit f2981a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/my-website/docs/observability/athina_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions litellm/integrations/athina.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def __init__(self):
"context",
"expected_response",
"user_query",
"custom_attributes",
]

def log_event(self, kwargs, response_obj, start_time, end_time, print_verbose):
Expand Down

0 comments on commit f2981a0

Please sign in to comment.