Tutorial not working due to deprecated OpenAI moderation model
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 45/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
Open the run-pipe tutorial at https://baseai.dev/learn/run-pipe and locate the moderation example using text-moderation-007. Update the tutorial to use omni-moderation-latest, then run the documented npx tsx index.ts example and confirm it no longer requests the deprecated model.
索引モデルが issue の本文から書いたものです。
説明
Description
Follow the tutorial, specifically the page https://baseai.dev/learn/run-pipe
Code example
It tries to moderate using text-moderation-007 but the current moderation model is omni-moderation-latest.
Additional context
Error message
npx tsx index.ts
(node:34160) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
/Users/fabiovedovelli/Code/my-ai-project/node_modules/@baseai/core/src/common/errors.ts:75
return new BadRequestError(status, error, message, headers);
^
BadRequestError: 400 Error from OpenAI: 403 Project `proj_yIE96rr2PYpDK55CfxPorTFx` does not have access to model `text-moderation-007`
at Function.generate (/Users/fabiovedovelli/Code/my-ai-project/node_modules/@baseai/core/src/common/errors.ts:75:12)
at Request.handleErrorResponse (/Users/fabiovedovelli/Code/my-ai-project/node_modules/@baseai/core/src/common/request.ts:126:18)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Request.send (/Users/fabiovedovelli/Code/my-ai-project/node_modules/@baseai/core/src/common/request.ts:62:4)
at async Pipe.run (/Users/fabiovedovelli/Code/my-ai-project/node_modules/@baseai/core/src/pipes/pipes.ts:309:18)
at async main (/Users/fabiovedovelli/Code/my-ai-project/index.ts:17:22) {
status: 400,
headers: {
'access-control-allow-origin': '*',
connection: 'keep-alive',
'content-length': '256',
'content-type': 'application/json',
date: 'Wed, 12 Feb 2025 11:24:28 GMT',
env: 'local',
'keep-alive': 'timeout=5',
'lb-powered-by': 'Langbase',
'powered-by': 'BaseAI'
},
request_id: undefined,
error: {
code: 'BAD_REQUEST',
status: 400,
message: 'Error from OpenAI: 403 Project `proj_yIE96rr2PYpDK55CfxPorTFx` does not have access to model `text-moderation-007`',
docs: 'https://langbase.com/docs/api-reference/errors/bad_request'
},
code: 'BAD_REQUEST'
}
Node.js v23.6.1
- 主要言語
- TypeScript
- スター
- 1.3k
- フォーク
- 112
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommandCodeAI/BaseAI のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
CommandCodeAI/BaseAI#177 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
CommandCodeAI/BaseAI#162 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
CommandCodeAI/BaseAI#155 · コメント 3 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
CommandCodeAI/BaseAI#154 ·
-
Unable to deploy オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
CommandCodeAI/BaseAI#153 ·
CommandCodeAI/BaseAI の issue をすべて見る
似ている issue
-
Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OpenNSW/nsw-srilanka#497 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
digidem/comapeo-cloud-app#403 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100