Browse Source

Merge dda55cd6dc into 74a7960af8

pull/420/merge
Vivek Haldar 10 months ago committed by GitHub
parent
commit
f75d2982d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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') 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', parser.add_argument('--context', '-c',
help="Use Context file (context.md) to add context to your pattern", action="store_true") 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() args = parser.parse_args()
home_holder = os.path.expanduser("~") home_holder = os.path.expanduser("~")

4
installer/client/cli/utils.py

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

Loading…
Cancel
Save