Skip to content

Commit 0be87bb

Browse files
committed
fix #7519 -- The chat placeholder text gives @chatgpt and @gemini as examples, but they don't work.
1 parent 4cf31a1 commit 0be87bb

File tree

5 files changed

+9
-23
lines changed

5 files changed

+9
-23
lines changed

src/packages/frontend/account/other-settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ export function OtherSettings(props: Readonly<Props>): JSX.Element {
402402

403403
function render_language_model(): Rendered {
404404
return (
405-
<LabeledRow label={<>Default Language Model</>}>
405+
<LabeledRow label={<>Default AI Language Model</>}>
406406
<LLMSelector model={model} setModel={setModel} />
407407
</LabeledRow>
408408
);

src/packages/frontend/chat/input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export default function ChatInput({
248248
function getPlaceholder(project_id, placeholder?: string): string {
249249
if (placeholder != null) return placeholder;
250250
if (redux.getStore("projects").hasLanguageModelEnabled(project_id)) {
251-
return "Type a new message (mention a collaborator or LLM via @chatgpt, @gemini, etc.)...";
251+
return "Type a new message (chat with AI or notify a collaborator by typing @)...";
252252
}
253-
return "Type a new message...";
253+
return "Type a new message (notify a collaborator by typing @)...";
254254
}

src/packages/frontend/chat/side-chat.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function AddChatCollab({ addCollab, project_id }) {
203203
<div>
204204
You can{" "}
205205
{redux.getProjectsStore().hasLanguageModelEnabled(project_id) && (
206-
<>put @chatgpt in any message to get a response from ChatGPT, </>
206+
<>chat with AI or notify a collaborator by typing @, </>
207207
)}
208208
<A href="https://github.com/sagemathinc/cocalc/discussions">
209209
join a discussion on GitHub
@@ -218,17 +218,6 @@ function AddChatCollab({ addCollab, project_id }) {
218218
}
219219

220220
function CollabList({ project, addCollab, actions }) {
221-
const projectsStore = redux.getProjectsStore();
222-
const hasOpenAI = projectsStore.hasLanguageModelEnabled(
223-
project.get("project_id"),
224-
undefined,
225-
"openai",
226-
);
227-
const hasGoogleLLM = projectsStore.hasLanguageModelEnabled(
228-
project.get("project_id"),
229-
undefined,
230-
"google",
231-
);
232221
return (
233222
<div
234223
style={
@@ -248,11 +237,9 @@ function CollabList({ project, addCollab, actions }) {
248237
<Icon name={addCollab ? "caret-down" : "caret-right"} />
249238
</div>
250239
<span style={{ color: COLORS.GRAY_M, fontSize: "10pt" }}>
251-
{hasOpenAI && <>@ChatGPT, </>}
252-
{hasGoogleLLM && <>@Gemini, </>}
253240
<ProjectUsers
254241
project={project}
255-
none={<span>{hasOpenAI ? "add" : "Add"} people to work with...</span>}
242+
none={<span>Add people to work with...</span>}
256243
/>
257244
</span>
258245
</div>

src/packages/frontend/editors/markdown-input/complete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export function Complete(props: Props) {
214214
key: "sub_llm",
215215
label: (
216216
<span style={style}>
217-
<AIAvatar size={22} /> More Language Models
217+
<AIAvatar size={22} /> More AI Language Models
218218
</span>
219219
),
220220
style,

src/packages/next/pages/features/ai.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export default function AI({ customize }) {
208208
<ChatGPTFixError />
209209

210210
<Info
211-
title={"Mention @chatgpt in any Chatroom in CoCalc"}
211+
title={"Mention AI models in any Chatroom in CoCalc"}
212212
icon="comment"
213213
image={ChatGptGenerateCode}
214214
anchor="a-mention"
@@ -220,7 +220,7 @@ export default function AI({ customize }) {
220220
<A href={`${DOC_AI}#chatgpt-in-chat-rooms-and-side-chat`}>
221221
mentioning
222222
</A>{" "}
223-
<Text code>@chatgpt</Text> in a{" "}
223+
<Text code>@</Text> in a{" "}
224224
<A href="https://doc.cocalc.com/chat.html#side-chat">Side Chat</A>
225225
. The prompt is:
226226
</Paragraph>
@@ -240,8 +240,7 @@ export default function AI({ customize }) {
240240
</Paragraph>
241241
{googleVertexaiEnabled ? (
242242
<Paragraph>
243-
Note: Mention <Text code>@gemini</Text> to talk to Google's
244-
Gemini model.
243+
Note: Use @ also to talk to Google's Gemini model.
245244
</Paragraph>
246245
) : undefined}
247246
</Info>

0 commit comments

Comments
 (0)