Metin commited on
Commit
e801179
1 Parent(s): 4131ea5

Change common system prompt. Fix toast messages. Convert openai logo to white.

Browse files
Files changed (2) hide show
  1. app.py +4 -4
  2. assets/openai.svg +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ with st.sidebar:
76
  ) and openai_api_key != "":
77
  st.session_state.openai_key = openai_api_key
78
  openai_client = OpenAI(api_key=openai_api_key)
79
- st.toast("OpenAI API Key is set to test", icon="✔️")
80
 
81
  st.divider()
82
 
@@ -92,7 +92,7 @@ with st.sidebar:
92
  ) and mistral_api_key != "":
93
  st.session_state.mistral_key = mistral_api_key
94
  mistral_client = MistralClient(api_key=mistral_api_key)
95
- st.toast("mistral API Key is set to test", icon="✔️")
96
 
97
  st.divider()
98
 
@@ -108,13 +108,13 @@ with st.sidebar:
108
  ) and claude_api_key != "":
109
  st.session_state.claude_key = claude_api_key
110
  claude_client = anthropic.Anthropic(api_key=claude_api_key)
111
- st.toast("Claude API Key is set to test", icon="✔️")
112
 
113
  st.divider()
114
 
115
  common_system_prompt = st.text_area(
116
  "Common System Prompt",
117
- value="Following is a conversation from a debate group. You will state your opinion when its your turn. User will transfer participants responses to you and your response to the participants so that you can communicate.",
118
  height=300,
119
  )
120
 
 
76
  ) and openai_api_key != "":
77
  st.session_state.openai_key = openai_api_key
78
  openai_client = OpenAI(api_key=openai_api_key)
79
+ st.toast("OpenAI API Key is set", icon="✔️")
80
 
81
  st.divider()
82
 
 
92
  ) and mistral_api_key != "":
93
  st.session_state.mistral_key = mistral_api_key
94
  mistral_client = MistralClient(api_key=mistral_api_key)
95
+ st.toast("mistral API Key is set", icon="✔️")
96
 
97
  st.divider()
98
 
 
108
  ) and claude_api_key != "":
109
  st.session_state.claude_key = claude_api_key
110
  claude_client = anthropic.Anthropic(api_key=claude_api_key)
111
+ st.toast("Claude API Key is set", icon="✔️")
112
 
113
  st.divider()
114
 
115
  common_system_prompt = st.text_area(
116
  "Common System Prompt",
117
+ value="Following is a conversation from a debate group. You will state your opinion when its your turn. User will transfer participants responses to you and your response to the participants so that you can communicate. When you refer to the opinions of other participants use their name to address them.",
118
  height=300,
119
  )
120
 
assets/openai.svg CHANGED