diff --git a/src/dokumetry/cohere.py b/src/dokumetry/cohere.py index 733ae30..cba0468 100644 --- a/src/dokumetry/cohere.py +++ b/src/dokumetry/cohere.py @@ -15,7 +15,7 @@ def count_tokens(text): Returns: int: The number of tokens in the text. """ - tokens_per_word = 2.5 + tokens_per_word = 1.5 # Split the text into words words = text.split() @@ -203,7 +203,7 @@ def stream_generator(): model = kwargs.get('model', "command") prompt = kwargs.get('message') data = { - "llmReqId": response.generation_id, + "llmReqId": response.response_id, "environment": environment, "applicationName": application_name, "sourceLanguage": "python",