| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -955,9 +955,11 @@ def message_to_str(msg: llama_types.ChatCompletionRequestMessage): | |||
| 955 | 955 | assert isinstance(function_call, str) | |
| 956 | 956 | assert stream is False # TODO: support stream mode | |
| 957 | 957 | ||
| 958 | - print(new_prompt) | ||
| 959 | - print(completion["choices"][0]["text"]) | ||
| 958 | + if llama.verbose: | ||
| 959 | + print(new_prompt) | ||
| 960 | + print(completion["choices"][0]["text"]) | ||
| 960 | 961 | ||
| 962 | + # TODO: support stream mode | ||
| 961 | 963 | return llama_types.CreateChatCompletionResponse( | |
| 962 | 964 | id="chat" + completion["id"], | |
| 963 | 965 | object="chat.completion", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments