Skip to content

Commit

Permalink
Merge pull request #72 from studio-recoding/feat/case2-multiple-sched…
Browse files Browse the repository at this point in the history
…ules

hotfix: 에러 수정
  • Loading branch information
uommou authored Jun 26, 2024
2 parents 9119f32 + 838f6e4 commit cec5256
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/prompt/openai_config.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[NESS_NORMAL]
TEMPERATURE = 0.5
MAX_TOKENS = 1500
MODEL_NAME = gpt-4-turbo
MODEL_NAME = gpt-4

[NESS_CASE]
TEMPERATURE = 0
Expand Down
16 changes: 8 additions & 8 deletions app/prompt/openai_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,30 +136,30 @@ class Template:
Shall I add your meeting with Dr. Smith at her office on March 3rd from 10am to 11am and your dinner with John at the Italian restaurant on March 4th at 7pm to your schedule?
<separate>
[
{
{{
"info": "meeting with Dr. Smith",
"location": "Dr. Smith's office",
"person": "Dr. Smith",
"start_time": "2023-03-03T10:00:00+09:00",
"end_time": "2023-03-03T11:00:00+09:00",
"category": {
"category": {{
"name": "Work",
"id": 1,
"color": "#FF0000"
}
},
{
}}
}},
{{
"info": "dinner with John",
"location": "Italian restaurant",
"person": "John",
"start_time": "2023-03-04T19:00:00+09:00",
"end_time": null, // Assuming end time is not specified
"category": {
"category": {{
"name": "Personal",
"id": 2,
"color": "#00FF00"
}
}
}}
}}
]
User input: {question}
Expand Down
1 change: 1 addition & 0 deletions app/routers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ async def get_langchain_schedule(data: PromptRequest, chat_type_prompt):
return response

except Exception as e:
print(e)
raise HTTPException(status_code=500, detail=str(e))

# case 3 : rag
Expand Down

0 comments on commit cec5256

Please sign in to comment.