Skip to content

Commit f077f34

Browse files
committed
merge #4
1 parent b97ab39 commit f077f34

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) 的敘述|

api/index.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@
1010
line_handler = WebhookHandler(os.getenv("LINE_CHANNEL_SECRET"))
1111
working_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-
2213
app = Flask(__name__)
2314
chatgpt = ChatGPT()
2415

0 commit comments

Comments
 (0)