Skip to content

Commit

Permalink
Merge pull request #290 from tegnike/hotfix/fix-code-blocks
Browse files Browse the repository at this point in the history
コードブロックの不具合修正
  • Loading branch information
tegnike authored Jan 15, 2025
2 parents 5964df9 + 817d961 commit ea43b35
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cursor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@
- src/pages/api/aiChat.ts
- src/features/chat/aiChatFactory.ts
- .env.example

## 入力フォームからLLMを介して回答を得るまで
src/components/form.tsx
src/features/chat/handlers.ts
src/features/chat/vercelAIChat.ts
src/features/chat/aiChatFactory.ts
src/pages/api/aiChat.ts
2 changes: 1 addition & 1 deletion src/components/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Main = () => {
const Footer = () => {
return (
<footer className="absolute py-4 bg-[#413D43] text-center text-white font-Montserrat bottom-0 w-full">
powered by ChatVRM from Pixiv / ver. 2.23.0
powered by ChatVRM from Pixiv / ver. 2.23.1
</footer>
)
}
2 changes: 2 additions & 0 deletions src/features/chat/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ export const processAIResponse = async (
// コードブロック前のテキストを処理
if (beforeCode.trim()) {
receivedMessage = beforeCode
isCodeBlock = true
codeBlockText = rest.join('```')
} else {
isCodeBlock = true
codeBlockText = rest.join('```')
Expand Down

0 comments on commit ea43b35

Please sign in to comment.