Skip to content

Commit f7f4b6f

Browse files
Update env variable
1 parent 4324863 commit f7f4b6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
handler = WebhookHandler(os.getenv('LINE_CHANNEL_SECRET'))
2525
storage = Storage('db.json')
2626

27-
memory = Memory(system_message=os.getenv('OPENAI_SYSTEM_MESSAGE'), memory_message_count=2)
27+
memory = Memory(system_message=os.getenv('SYSTEM_MESSAGE'), memory_message_count=2)
2828
model_management = {}
2929
api_keys = {}
3030

src/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def audio_transcriptions(self, file_path, model_engine) -> str:
5656
'file': open(file_path, 'rb'),
5757
'model': (None, 'whisper-1'),
5858
}
59+
r = self._request_with_file('/audio/transcriptions', files)
5960
if r.get('error'):
6061
return None, r.get('error', {}).get('message', '')
61-
r = self._request_with_file('/audio/transcriptions', files)
6262
return r['text'], None
6363

6464
def image_generations(self, prompt: str) -> str:

0 commit comments

Comments
 (0)