Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITGD-4664 #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

ITGD-4664 #1

wants to merge 2 commits into from

Conversation

Jason-liu-0219
Copy link

@Jason-liu-0219 Jason-liu-0219 commented Jun 24, 2024

需求單號:https://104corp.atlassian.net/browse/ITGD-4664

本機起動測試

1.添加 .env.local

OPENAI_API_KEY=<your api key here>

2.安裝依賴

# 1. install nodejs and yarn first
# 2. config local env vars in `.env.local`
# 3. run
yarn install
yarn dev

3.測試
截圖 2024-06-27 上午10 52 56

ncclog 使用方式

  1. cdn:https://static.104.com.tw/104i/js/api/log/e104.log.latest.js 載入
  2. 載入後 window. _elog 可以推入物件,套件會去 polling 這個陣列,打 ncclog api
    window._elog.push({ web: "104_next_chat", track: ["chat"], ext: nccLog, });

修改步驟

  1. 在 app/client/layout.tsx 中找到 36 行,可以看到 html 架構,在這邊可以引入想要的 cdn 等等。
  2. 在 app/client/openai.ts 中的 292 行 onclose function open ai 會在使用者輸入完成後觸發,這邊可以做紀錄。

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.

1 participant