You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks the input message from line is sent to ChatGPT without any modification. Most of the case, the first part of the message contains the trigger word (登山部さん) , and it may confuse ChatGPT
Proposal
The trigger word (登山部さん) should be removed from the request message to ChatGPT
On the other hand, it's useful to tell our context to ChatGPT since this is for "登山部" . Setting system role might be helpful
e.g. {"role": "system", "content": "登山に関することを教えてください"}
Concern
登山部さん
) , and it may confuse ChatGPTProposal
登山部さん
) should be removed from the request message to ChatGPTsystem
role might be helpful{"role": "system", "content": "登山に関することを教えてください"}
Related code
line_message_yamanotenki/app/controllers/linebot_controller.rb
Line 44 in dbb67df
line_message_yamanotenki/app/models/chat_gpt.rb
Line 13 in dbb67df
The text was updated successfully, but these errors were encountered: