前端 將以下程式碼貼上 app/ai-chat/page.tsx 後端 使用server action 架構,將以下程式碼貼上app/actions/aiChatActions.ts 環境變數設定 將 NVIDIA NIM API Key 存放在專案根目錄的 .env.local 檔案中,這樣它就不會被提交到版本控制系統(如 GitHub)。
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed