mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-27 22:20:06 +00:00
Added custom_attributes to additional_keys which can be sent to athina (#8518)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user