Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Investigate AI SDK attachment failure

Đang mở
#2,010 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
ai, testing-qa

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lệnh gọi generateText của TypeScript trong kịch bản e2e và lần theo lỗi qua convertToOpenAIResponsesInput trong @ai-sdk/openai và js/dist/index.mjs. Được xem là hoàn tất khi đã xác định nguyên nhân của lỗi tệp đính kèm text/plain và một cách giải quyết hoặc giới hạn đã được xác nhận, sau đó chạy lại trường hợp e2e.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

stale
ile part media type text/plain' functionality not supported.\n\nAI_UnsupportedFunctionalityError: 'file part media type text/plain' functionality not supported.\n    at <repo>/e2e/.bt-tmp/scenario-deps/ai-sdk-instrumentation-locked-e712014295b4196e/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ai-sdk/openai/dist/index.mjs:0:0\n    at Array.map (<anonymous>)\n    at convertToOpenAIResponsesInput (<repo>/e2e/.bt-tmp/scenario-deps/ai-sdk-instrumentation-locked-e712014295b4196e/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ai-sdk/openai/dist/index.mjs:0:0)\n    at OpenAIResponsesLanguageModel.getArgs (<repo>/e2e/.bt-tmp/scenario-deps/ai-sdk-instrumentation-locked-e712014295b4196e/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ai-sdk/openai/dist/index.mjs:0:0)\n    at process.processTicksAndRejections (node:<internal>:0:0)\n    at async OpenAIResponsesLanguageModel.doGenerate (<repo>/e2e/.bt-tmp/scenario-deps/ai-sdk-instrumentation-locked-e712014295b4196e/node_modules/.pnpm/@[email protected][email protected]/node_modules/@ai-sdk/openai/dist/index.mjs:0:0)\n    at async parentSpan.traced.name (<repo>/js/dist/index.mjs:0:0)
await instrumentedAI.generateText({
                model: openaiModel,
                messages: [
                  {
                    role: "user",
                    content: [
                      {
                        type: "file",
                        data: Buffer.from("tiny test file", "utf8"),
                        mediaType: "text/plain",
                        filename: "tiny.txt",
                      },
                      {
                        type: "text",
                        text: "Read the file and summarize it in one short sentence.",
                      },
                    ],
                  },
                ],
                temperature: 0,
                ...tokenLimit(options.maxTokensKey, 48),
              });
Ngôn ngữ chính
TypeScript
Star
29
Fork
16
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của braintrustdata/braintrust-sdk-javascript

Tất cả issue của braintrustdata/braintrust-sdk-javascript

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.