- {openai.openai.apiKey ||
- openai.azure.apiKey ||
- openai.env.OPENAI_API_KEY ||
- openai.env.AZURE_API_KEY
- ? activeChannel?.channel_name || tMenu("new-conversation")
- : tSetting("set-api-key")}
+ {renderIcon()}
+
+ {apiKey ? (
+
+ {activeChannel?.channel_name || tMenu("new-conversation")}
+
+ ) : (
+ tSetting("set-api-key")
+ )}
- {!!(
- openai.openai.apiKey ||
- openai.azure.apiKey ||
- openai.env.OPENAI_API_KEY ||
- openai.env.AZURE_API_KEY
- ) && (
+ {!!apiKey && (