diff --git a/litellm/integrations/helicone.py b/litellm/integrations/helicone.py index b00e145171..56c9c38bc6 100644 --- a/litellm/integrations/helicone.py +++ b/litellm/integrations/helicone.py @@ -60,7 +60,7 @@ class HeliconeLogger: } } - return claude_provider_request, claude_response_obj + return claude_response_obj @staticmethod def add_metadata_from_header(litellm_params: dict, metadata: dict) -> dict: @@ -119,7 +119,7 @@ class HeliconeLogger: response_obj = response_obj.json() if "claude" in model: - provider_request, response_obj = self.claude_mapping( + response_obj = self.claude_mapping( model=model, messages=messages, response_obj=response_obj ) @@ -130,7 +130,11 @@ class HeliconeLogger: } # Code to be executed + provider_url = self.provider_url url = "https://api.hconeai.com/oai/v1/log" + if "claude" in model: + url = "https://api.hconeai.com/anthropic/v1/log" + provider_url = "https://api.anthropic.com/v1/messages" headers = { "Authorization": f"Bearer {self.key}", "Content-Type": "application/json", @@ -147,7 +151,7 @@ class HeliconeLogger: meta.update(metadata) data = { "providerRequest": { - "url": self.provider_url, + "url": provider_url, "json": provider_request, "meta": meta, },