Skip to content

Commit

Permalink
feat: added help command for flags
Browse files Browse the repository at this point in the history
Merge pull request #8 from viraj-s15/help-command
  • Loading branch information
viraj-s15 authored Dec 7, 2023
2 parents a8ff1cd + ea90f38 commit 12e1879
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/openai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import argparse
import logging

logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.ERROR)

try:
sys.path.append("../../src/")
Expand Down Expand Up @@ -75,8 +75,23 @@
handle_parsing_errors="Check your output and make sure it conforms!",
)


print("Welcome to the stock market chatbot!")
print("Type 'exit' to exit the program.")
print("Type 'help' to see a list of flags.")
print("Remember: Yahoo Finance is a bit slow at times so please be patient")
while True:
user_input = input(">>> ")
if user_input == "help":
print(
"Flags:\n"
+ "--verbose: Sets langchain output to verbose\n"
+ "--temperature: The temperature of the model\n"
+ "--model: The model to use\n"
+ "--max_iterations: The maximum number of iterations the model is allowed to make\n"
+ "--message_history: The number of messages to store in the conversation history"
)
continue
if user_input == "exit":
break
response = agent(user_input)
Expand Down

0 comments on commit 12e1879

Please sign in to comment.