Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitamalinov committed Apr 24, 2024
1 parent 3a58765 commit 5afb72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/openai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def run_assistant(
output_data += json.dumps(output)

# One token is ~4 characters of text https://platform.openai.com/tokenizer
token_input = int(len(issue_input) / 4)
token_input = int(len(input_data) / 4)
token_output = int(len(output_data) / 4)

return token_input, token_output, output
Expand Down

0 comments on commit 5afb72d

Please sign in to comment.