チャットボットをCloudflare GLM 5.2 lowへ切り替える#148
Merged
Merged
Conversation
Deploying acecore-net with
|
| Latest commit: |
b58bcdd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://08cad4a0.acecore-net.pages.dev |
| Branch Preview URL: | https://codex-use-cloudflare-gemma4.acecore-net.pages.dev |
gui-ace
marked this pull request as ready for review
June 17, 2026 03:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
関連 Issue
なし
概要
問い合わせ AI チャットの実行基盤を OpenAI Responses API から Cloudflare Workers AI に切り替えます。
既定モデルは Cloudflare-hosted の GLM 5.2 (
@cf/zai-org/glm-5.2) にし、reasoning effort はlowにします。主な変更点
functions/api/ai-contact.tsでenv.AI.run()を使う Workers AI 呼び出しに変更@cf/zai-org/glm-5.2に設定し、reasoning_effort: lowを送るように変更wrangler.jsoncに AI binding、CLOUDFLARE_AI_MODEL、CLOUDFLARE_AI_REASONING_EFFORTを追加確認したこと
npm cinpx prettier --check README.md wrangler.jsonc functions/api/ai-contact.tsnpx prettier --check src/components/AiChatWidget.astrogit diff --checknpm run buildhttp://127.0.0.1:4321/の表示、DOM、コンソールを確認/api/ai-contactをモックし、デスクトップ幅とモバイル幅のチャット送信後にstrong a/em aとしてリンク描画されること、Markdown 記法が残らないことを確認未確認事項・補足
npm run buildは sandbox 内のspawn EPERMで失敗したため、同じコマンドを承認付きで再実行して成功しました。/api/ai-contactが 404 になるため、リンク描画のブラウザ検証では/api/ai-contactの成功レスポンスをモックしています。