mirror of
https://github.com/hackingthemarkets/openai-whisper-voice-commands.git
synced 2023-04-08 21:42:32 +03:00
24 lines
601 B
Python
24 lines
601 B
Python
OPENAI_API_KEY = "yourapikey"
|
|
|
|
TRANSCRIPT_FILE = "transcriptions/transcript.txt"
|
|
|
|
SYMBOLS = {
|
|
"Apple": "AAPL",
|
|
"Microsoft": "MSFT",
|
|
"Nvidia": "NVDA"
|
|
}
|
|
|
|
COMMAND_WORD = "whisper"
|
|
|
|
PROMPT_INSTRUCTIONS = "Return the name of the company and the quantity in the text below. " \
|
|
"If the text contains the words 'by', 'buy', or 'bye', return 'buy' for the action. " \
|
|
"If the text contain the words 'sell', 'cell', or 'sale', return 'sell' for the action. " \
|
|
"Return the result in JSON format:"
|
|
|
|
PROMPT_OUTPUT_FORMAT = """
|
|
{
|
|
"action": "",
|
|
"company": "",
|
|
"quantity":
|
|
}
|
|
""" |