Skip to content

チャットフォームのクライアント側とサーバー側APIを連携#7

Merged
na-trium-144 merged 3 commits into
mainfrom
chat
Aug 7, 2025
Merged

チャットフォームのクライアント側とサーバー側APIを連携#7
na-trium-144 merged 3 commits into
mainfrom
chat

Conversation

@hiromeee

@hiromeee hiromeee commented Aug 7, 2025

Copy link
Copy Markdown
Contributor

チャットフォームに質問を投げたらとりあえずLLMから返信が返ってくるようにはした

Create Next App - Google Chrome 2025_08_07 9_49_08

@hiromeee
hiromeee requested a review from na-trium-144 August 7, 2025 00:52
@hiromeee hiromeee self-assigned this Aug 7, 2025
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 7, 2025

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
my-code 29d0e0a Commit Preview URL

Branch Preview URL
Aug 07 2025, 10:03 AM

Comment thread app/[docs_id]/chatForm.tsx Outdated
throw new Error(data.response || "エラーが発生しました。");
}
setResponse(data.response);
} catch (error: any) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./app/[docs_id]/chatForm.tsx
33:21  Error: Unexpected any. Specify a different type.  @typescript-eslint/no-explicit-any

エラーの型はanyではなくunknownにすると良いらしいですね
https://qiita.com/frozenbonito/items/e708dfb3ab7c1fd3824d

@na-trium-144
na-trium-144 merged commit 0597dfa into main Aug 7, 2025
2 of 3 checks passed
@hiromeee
hiromeee deleted the chat branch August 7, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants