Count AI spend per person and per helper at the gateway

Aperta
#8 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start with the agent proxy and the model configuration described in docs/admin/ai.md, then trace how helper calls are logged and how javo presents usage. Check how the LLM Serving pack accepts attribution and exposes metering. Done means every helper call is attributed to a person and helper, spend can be viewed for a chosen period, attribution tests pass, and the gateway endpoint is documented.

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

Descrizione

priority: medium ⚡ type: enhancement 💅🏼

Problem
The proposal says every model call goes through Nebari's gateway and spend is shown per person and per helper. Today javo's agent proxy calls the provider with the admin key, and dailyTokensPerUser explicitly does not apply to it (docs/admin/ai.md, "The coding agent's model"). Token counts are only logged.

Proposal

  • Send agent model calls through the LLM Serving pack's gateway (nebari-dev/llm-serving-pack), identifying the person and the helper on each call.
  • Show spend per person and per helper in javo, from the gateway's metering.
  • Keep the key out of the agent, as today.

Definition of done

  • Every helper model call is visible in the gateway's metering with person and helper.
  • Javo shows spend per person and per helper for a chosen period.
  • Tests for attribution.
  • Docs: configuring the gateway endpoint.
Lingua principale
Go
Stelle
5
Fork
0
Merge medio
21h 13m
PR unite (30g)
53

Preparare l'ambiente

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 nebari-dev/tapas

Tutte le issue di nebari-dev/tapas

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.