Skip to content

Commit

Permalink
docs: update basdic todos
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 1, 2023
1 parent 1994db3 commit bac87c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions editor/src/components/editor/action/command-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const CommandFunctions = Extension.create({

switch (action.outputForm) {
case OutputForm.STREAMING:
const content = await fetch("/api/completion/qwen", {
const content = await fetch("/api/completion/yiyan", {
method: "POST",
body: JSON.stringify({ prompt: prompt }),
}).then(it => it.text());
Expand All @@ -80,7 +80,7 @@ export const CommandFunctions = Extension.create({
editor.chain().focus().insertContentAt(pos, content).run();
break;
case OutputForm.NORMAL:
const msg = await fetch("/api/completion/qwen", {
const msg = await fetch("/api/completion/yiyan", {
method: "POST",
body: JSON.stringify({ prompt: prompt }),
}).then(it => it.text());
Expand Down
4 changes: 3 additions & 1 deletion editor/src/components/editor/advice/advice-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export const AdviceView = ({ editor }: AdviceViewProps) => {
<button
className='rounded-md bg-red-500 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-white/20'
onClick={() => {
setActiveId(null)
editor.commands.unsetAdvice(activeCommentId)
editor.commands.undo()
editor.commands.focus()
}}
>
Expand All @@ -97,6 +98,7 @@ export const AdviceView = ({ editor }: AdviceViewProps) => {
className='rounded-md bg-white/10 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-white/20'
onClick={() => {
setActiveId(null)
editor.commands.unsetAdvice(activeCommentId)
editor.commands.focus()
}}
>
Expand Down

0 comments on commit bac87c4

Please sign in to comment.