Browse Source

Add a debug option to show full context.

pull/420/head
Vivek Haldar 10 months ago
parent
commit
dda55cd6dc
  1. 2
      installer/client/cli/fabric.py
  2. 4
      installer/client/cli/utils.py

2
installer/client/cli/fabric.py

@ -73,6 +73,8 @@ def main():
help='The URL of the remote ollamaserver to use. ONLY USE THIS if you are using a local ollama server in an non-default location or port')
parser.add_argument('--context', '-c',
help="Use Context file (context.md) to add context to your pattern", action="store_true")
parser.add_argument('--debug',
help="Print out entire LLM prompt for debugging", action="store_true")
args = parser.parse_args()
home_holder = os.path.expanduser("~")

4
installer/client/cli/utils.py

@ -244,6 +244,8 @@ class Standalone:
else:
messages = [user_message]
try:
if self.args.debug:
print(messages)
if self.local:
if host:
asyncio.run(self.localStream(messages, host=host))
@ -355,6 +357,8 @@ class Standalone:
else:
messages = [user_message]
try:
if self.args.debug:
print(messages)
if self.local:
if host:
asyncio.run(self.localChat(messages, host=host))

Loading…
Cancel
Save