Compare commits
No commits in common. "243afd2f0145b026d45eaf8d453b40c8505bc6ca" and "e7dbc443aa473966b10f0a78a7486d80138cff14" have entirely different histories.
243afd2f01
...
e7dbc443aa
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"mode": "gui",
|
||||
"ollamaConfig": {
|
||||
"base_url": "http://localhost:11434",
|
||||
"embeddings_url": "http://localhost:11434",
|
||||
"base_model": "mistral",
|
||||
"embeddings_model": "mxbai-embed-large",
|
||||
"base_header": {
|
||||
"": ""
|
||||
},
|
||||
"embeddings_header": {
|
||||
"": ""
|
||||
}
|
||||
}
|
||||
}
|
|
@ -6,7 +6,6 @@ import os
|
|||
import sys
|
||||
|
||||
CONFIG_FILE = "config/config.json"
|
||||
ERROR_CORRPUTED_CONFIG = "The config file seems to be corrupted, please run: 'python project.py --config'"
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Write with Ollama, using standard chat or RAG system, for \n\
|
||||
|
@ -37,9 +36,8 @@ def main():
|
|||
gui = ChatGUI(**config["ollamaConfig"])
|
||||
gui.mainloop()
|
||||
except TypeError:
|
||||
sys.exit(ERROR_CORRPUTED_CONFIG)
|
||||
else:
|
||||
sys.exit(ERROR_CORRPUTED_CONFIG)
|
||||
sys.exit("The config file seems to be corrupted, please run: 'python project.py --config'")
|
||||
sys.exit("No Config available. please run: 'python project.py --config' to set it up")
|
||||
|
||||
|
||||
|
||||
|
@ -94,7 +92,7 @@ def handle_terminal(args):
|
|||
bot = TerminalBot(args.p, args.f, **config["ollamaConfig"])
|
||||
bot.start()
|
||||
except TypeError:
|
||||
sys.exit(ERROR_CORRPUTED_CONFIG)
|
||||
sys.exit("The config file seems to be corrupted, please run: 'python project.py --config'")
|
||||
elif args.f:
|
||||
sys.exit("failure: prompt needed")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue