File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ Import Git Repository,選擇你剛剛 fork 的專案 import
208208
209209| 環境變數名稱 | 預設值 | 說明 |
210210| ------------------------| --------------- | -----|
211- | OPENAI_MODEL | text-davinci-003 | 請參考 OpenAI 對 [ model] ( https://beta.openai.com/docs/api-reference/completions/create#completions/create-model ) 的敘述|
211+ | OPENAI_MODEL | text-davinci-003| 請參考 OpenAI 對 [ model] ( https://beta.openai.com/docs/api-reference/completions/create#completions/create-model ) 的敘述|
212212| OPENAI_TEMPERATURE | 0 | 請參考 OpenAI 對 [ temperature] ( https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature ) 的敘述|
213213| OPENAI_FREQUENCY_PENALTY| 0 | 請參考 OpenAI 對 [ frequency_penalty] ( https://beta.openai.com/docs/api-reference/completions/create#completions/create-frequency_penalty ) 的敘述|
214214| OPENAI_PRESENCE_PENALTY | 0.6 | 請參考 OpenAI 對 [ presence_penalty] ( https://beta.openai.com/docs/api-reference/completions/create#completions/create-presence_penalty ) 的敘述|
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 (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 )))
21-
2213app = Flask (__name__ )
2314chatgpt = ChatGPT ()
2415
You can’t perform that action at this time.
0 commit comments