From ecd6037e15e29d92e43a2a8f83669296fa78b70c Mon Sep 17 00:00:00 2001 From: BeatrixCohere <128378696+BeatrixCohere@users.noreply.github.com> Date: Tue, 21 May 2024 10:12:57 +0100 Subject: [PATCH] Add request source --- litellm/llms/cohere.py | 1 + litellm/llms/cohere_chat.py | 1 + 2 files changed, 2 insertions(+) diff --git a/litellm/llms/cohere.py b/litellm/llms/cohere.py index 0ebdf38f1..14a66b54a 100644 --- a/litellm/llms/cohere.py +++ b/litellm/llms/cohere.py @@ -117,6 +117,7 @@ class CohereConfig: def validate_environment(api_key): headers = { + "Request-Source":"unspecified:litellm", "accept": "application/json", "content-type": "application/json", } diff --git a/litellm/llms/cohere_chat.py b/litellm/llms/cohere_chat.py index e4de6ddcb..8ae839243 100644 --- a/litellm/llms/cohere_chat.py +++ b/litellm/llms/cohere_chat.py @@ -112,6 +112,7 @@ class CohereChatConfig: def validate_environment(api_key): headers = { + "Request-Source":"unspecified:litellm", "accept": "application/json", "content-type": "application/json", }