Skip to content

Commit

Permalink
debugs removed
Browse files Browse the repository at this point in the history
  • Loading branch information
eren23 committed Mar 23, 2023
1 parent ac8c9fa commit 2132aa7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions knowledgegpt/utils/utils_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ def answer_query_with_context(
if not is_turbo:
prompt_len = len(encoding.encode(prompt))
COMPLETIONS_API_PARAMS["max_tokens"] = 2000 - prompt_len
print("max_tokens: ", COMPLETIONS_API_PARAMS["max_tokens"])


response = openai.Completion.create(
prompt=prompt,
Expand All @@ -91,7 +89,6 @@ def answer_query_with_context(

messages_token_length = encoding.encode(str(messages))
COMPLETIONS_API_PARAMS_TURBO["max_tokens"] = 4096 - len(messages_token_length)
print("max_tokens_turbo: ", COMPLETIONS_API_PARAMS_TURBO["max_tokens"])

response = openai.ChatCompletion.create(

Expand Down

0 comments on commit 2132aa7

Please sign in to comment.