Skip to content

Commit

Permalink
Merge pull request #47 from studio-recoding/fix/chat
Browse files Browse the repository at this point in the history
[fix] 데모데이 기준으로 채팅 개선
  • Loading branch information
uommou authored Apr 14, 2024
2 parents cbc386d + 50c32e5 commit e73f1ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/prompt/openai_config.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[NESS_NORMAL]
TEMPERATURE = 0
TEMPERATURE = 0.5
MAX_TOKENS = 2048
MODEL_NAME = gpt-3.5-turbo-1106
MODEL_NAME = gpt-4

[NESS_CASE]
TEMPERATURE = 0
Expand Down
2 changes: 2 additions & 0 deletions app/prompt/openai_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class Template:
}}
User input: {question}
Response to user:
"""
case3_template = """
Expand Down
2 changes: 1 addition & 1 deletion app/routers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
async def get_langchain_case(data: PromptRequest) -> ChatCaseResponse:
# description: use langchain

config_chat = config['NESS_CHAT']
config_chat = config['NESS_CASE']

chat_model = ChatOpenAI(temperature=config_chat['TEMPERATURE'], # 창의성 (0.0 ~ 2.0)
max_tokens=config_chat['MAX_TOKENS'], # 최대 토큰수
Expand Down

0 comments on commit e73f1ca

Please sign in to comment.