[feat] providers: MartLLM row for #240 (one key for chat, image, video and speech)

Đang mở Phù hợp với người mới
#311 0 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Đọc preset DeepSeek hiện có và cấu hình provider cho ChatCompletions.stream. Thêm preset uberllm với endpoint đã nêu, giao thức OpenAI, xác thực Bearer và chức năng khám phá model thông qua /v1/models. Công việc hoàn tất khi preset hỗ trợ chat truyền phát và gọi công cụ mà không cần nhánh riêng cho provider trong chat_completions.py; hãy xác minh bằng các bài kiểm thử provider hiện có của dự án.

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

Mô tả

area:provider

Refs #240

#240 asks whether a user can enter one API key once and use it for assistant chat, image generation, video generation and narration. I work on UberLLM, an OpenAI-compatible API where one prepaid key serves chat, image, video, music and speech models, and I'd like to take its row in the matrix.

Proposed scope, one PR per step:

  1. Chat (this first PR): a uberllm agent preset, https://api.uberllm.dev/v1, protocol: "openai", bearer auth, no fixed model list (the public /v1/models endpoint lists the chat models, like the DeepSeek preset). No chat_completions.py branch is needed: in my test reasoning_effort low was accepted by DeepSeek, Qwen, GLM, GPT and Gemini models, medium by DeepSeek, Qwen and GLM, and high by DeepSeek, with no 400s. Verified through ChatCompletions.stream with a real key: streamed reply, and a tool call returned with its arguments.
  2. Image and speech: UberLLM serves /v1/images/generations, /v1/images/edits and /v1/audio/speech in the OpenAI shape, so these could reuse the existing openai image and speech adapters once the preset lists the right model ids by kind. I would verify the size, base64 and voice handling on a real account before claiming it.
  3. Video: UberLLM's video API is a job API (POST /v1/video/generations, poll GET /v1/video/generations/{id}, download the result), so it needs its own protocol adapter. I'd open a sub-issue for it rather than fold it into the preset.

Endpoint scope: international (one endpoint; no separate mainland China endpoint).

Does this scope work? If so I'll open the chat PR referencing #240.

Ngôn ngữ chính
TypeScript
Star
119
Fork
16
Merge trung bình
16 giờ 13 phút
Pull request đã merge (30 ngày)
195

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 ThinkFlowLab/OpenDirector

Tất cả issue của ThinkFlowLab/OpenDirector

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.