Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/chatgpt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from src.models import ModelInterface


Expand All @@ -7,7 +8,7 @@ def __init__(self, model: ModelInterface):

def get_response(self, text: str) -> str:
messages = [{
'role': 'system', 'content': 'You are a helpful assistant.'
'role': 'system', 'content': os.getenv('SYSTEM_MESSAGE')
}, {
'role': 'user', 'content': text
}]
Expand Down