Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Can the openai slot be used against a host that issues no key?

Aperta
#678 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start by reading builtin_providers.py and tracing how provider, base_url, and api_key from an agent node reach the OpenAI and Gemini clients. Compare the custom BASE_URL case in issue #666 and the MiniMax provider in pull #594. Done should be a clear implementation or documentation decision for keyless OpenAI-compatible hosts, with the resulting behavior verified.

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

Descrizione

ChatDev reaches a model through a provider name. builtin_providers.py registers openai and gemini with a label and a summary each, provider is a required field on an agent node, base_url is there to override the endpoint, and the client is built from the node config. The gemini client only passes a key when one is set, while the OpenAI client is always built with whatever api_key the node carries. Issue #666 shows someone already pointing provider: openai at a host that is not OpenAI through a custom BASE_URL under /v1, and the MiniMax provider in pull #594 arrives with its own key variable beside it.

A host that settles every call has no key to give. BlockRun is OpenAI-compatible and covers chat, image, video, music, speech and sound effects from one base URL, and each call is paid for on its own in USDC over x402 on Base or Solana, so there is no key to hold, no account to create and no balance to fund before a run. https://blockrun.ai

Is that a job for the openai slot, or does the provider layer expect a credential on every call? I can put together whatever fits, a provider entry or a short note next to the base_url example, and it is fine to tell me a keyless host is out of scope.

Lingua principale
Python
Stelle
34.3k
Fork
4.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. 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 OpenBMB/ChatDev

Tutte le issue di OpenBMB/ChatDev

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.