We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36048d4 commit de2e2bcCopy full SHA for de2e2bc
llama_cpp/llama_chat_format.py
@@ -955,9 +955,11 @@ def message_to_str(msg: llama_types.ChatCompletionRequestMessage):
955
assert isinstance(function_call, str)
956
assert stream is False # TODO: support stream mode
957
958
- print(new_prompt)
959
- print(completion["choices"][0]["text"])
+ if llama.verbose:
+ print(new_prompt)
960
+ print(completion["choices"][0]["text"])
961
962
+ # TODO: support stream mode
963
return llama_types.CreateChatCompletionResponse(
964
id="chat" + completion["id"],
965
object="chat.completion",
0 commit comments