70
70
)
71
71
"[Go to Azure Portal to get an Azure OpenAI API key](https://portal.azure.com/)"
72
72
"[Go to Azure OpenAI Studio](https://oai.azure.com/resource/overview)"
73
- "[View the source code](https://github.com/ks6088ts-labs/workshop-azure-openai/blob/main/apps/4_streamlit_chat_history /main.py)"
73
+ "[View the source code](https://github.com/ks6088ts-labs/workshop-azure-openai/blob/main/apps/7_streamlit_chat_history_rag /main.py)"
74
74
75
75
if not azure_openai_api_key or not azure_openai_endpoint or not azure_openai_api_version or not azure_openai_gpt_model :
76
76
st .warning ("サイドバーに Azure OpenAI の設定を入力してください" )
@@ -89,7 +89,7 @@ def init_page():
89
89
def init_messages ():
90
90
clear_button = st .sidebar .button ("Clear Conversation" , key = "clear" )
91
91
if clear_button or "messages" not in st .session_state :
92
- welcome_message = "ベアーモバイル カスタマーサポートへようこそ 。ご質問をどうぞ🐻 "
92
+ welcome_message = "上鳥羽製作所の社内チャットサービスへようこそ 。ご質問をどうぞ"
93
93
st .session_state .messages = [{"role" : "assistant" , "content" : welcome_message }]
94
94
st .session_state ["memory" ] = ConversationBufferWindowMemory (
95
95
return_messages = True , memory_key = "chat_history" , k = 10
@@ -132,7 +132,7 @@ def main():
132
132
for msg in st .session_state ["memory" ].chat_memory .messages :
133
133
st .chat_message (msg .type ).write (msg .content )
134
134
135
- if prompt := st .chat_input (placeholder = "法人で契約することはできるの? " ):
135
+ if prompt := st .chat_input (placeholder = "質問を入力してください " ):
136
136
st .chat_message ("user" ).write (prompt )
137
137
138
138
with st .chat_message ("assistant" ):
0 commit comments