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

未關閉 適合新手
#311 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
typescript
領域
api, backend

研究方向

閱讀現有的 DeepSeek 預設,以及 ChatCompletions.stream 的提供者設定。新增 uberllm 預設,採用指定的端點、OpenAI 協定、Bearer 驗證,並透過 /v1/models 探索模型。完成標準是:該預設支援串流聊天和工具呼叫,且不需要在 chat_completions.py 中新增提供者專屬分支;使用專案現有的提供者測試進行驗證。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
TypeScript
星號
119
分支
16
平均合併
16 小時 13 分鐘
30 天內合併 PR
195

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ThinkFlowLab/OpenDirector 的其他 Issue

查看 ThinkFlowLab/OpenDirector 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。