Tutorial not working due to deprecated OpenAI moderation model
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 1.3k
- Fork
- 112
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommandCodeAI/BaseAI
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
CommandCodeAI/BaseAI#177 ·
-
Vulnerability in BaseAI project Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
CommandCodeAI/BaseAI#162 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
CommandCodeAI/BaseAI#155 · 3 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
CommandCodeAI/BaseAI#154 ·
-
Unable to deploy Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
CommandCodeAI/BaseAI#153 ·
Tất cả issue của CommandCodeAI/BaseAI
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Add: Star Sports 2 Telugu HD Đang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100