Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix some things
Browse files Browse the repository at this point in the history
  • Loading branch information
patcher9 committed Feb 10, 2024
1 parent 8eca16a commit 0559f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dokumetry/cohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 0559f3a

Please sign in to comment.