File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010line_handler = WebhookHandler (os .getenv ("LINE_CHANNEL_SECRET" ))
1111working_status = os .getenv ("DEFALUT_TALKING" , default = "true" ).lower () == "true"
1212
13- print (type (os .getenv ("DEFALUT_TALKING" )))
14- print (type (os .getenv ("LINE_CHANNEL_SECRET" )))
15- print (type (os .getenv ("LINE_CHANNEL_ACCESS_TOKEN" )))
13+ print ((os .getenv ("DEFALUT_TALKING" )))
14+ print ((os .getenv ("LINE_CHANNEL_SECRET" )))
15+ print ((os .getenv ("LINE_CHANNEL_ACCESS_TOKEN" )))
16+ print (os .getenv ("OPENAI_MODEL" , default = "text-davinci-003" ))
17+ print (int (os .getenv ("OPENAI_TEMPERATURE" , default = 0 )))
18+ print (int (os .getenv ("OPENAI_FREQUENCY_PENALTY" , default = 0 ))
19+ print (float (os .getenv ("OPENAI_PRESENCE_PENALTY" , default = 0.6 ))
20+ print (int (os .getenv ("OPENAI_MAX_TOKENS" , default = 240 ))
1621
1722app = Flask (__name__ )
1823chatgpt = ChatGPT ()
You can’t perform that action at this time.
0 commit comments