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

Aperta Adatta ai principianti
#311 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, backend

Direzione di ricerca

Leggi il preset DeepSeek esistente e la configurazione del provider per ChatCompletions.stream. Aggiungi il preset uberllm con l’endpoint indicato, il protocollo OpenAI, l’autenticazione Bearer e il rilevamento dei modelli tramite /v1/models. Il lavoro è completato quando il preset supporta chat in streaming e chiamate agli strumenti senza un ramo specifico del provider in chat_completions.py; verificalo con i test dei provider già presenti nel progetto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
119
Fork
16
Merge medio
16h 13m
PR unite (30g)
195

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ThinkFlowLab/OpenDirector

Tutte le issue di ThinkFlowLab/OpenDirector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.