Token cost shows "—" for custom provider models
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- backend-api-design
Línea de trabajo
The issue does not identify implementation files or tests. Start by locating how the Session information panel calculates token costs for built-in providers and how custom provider models are discovered. Define how administrators can supply model prices and how cost thresholds should work, then verify that custom-provider costs and limits are visible and behave as expected.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
For models served through a custom provider, the Token Usage section of the Session information panel shows Cost as "—". Cost is only calculated for built-in providers, from Posit Assistant's own price list. There is no setting to supply prices for a custom provider's models.
Scenario
- Posit Workbench 2026.09.0, Posit Assistant 1.10.0 (RStudio and Positron). Same behavior in 1.14.0.
- Admin-enforced
providers.custom.<name>entry with"type": "openai-compatible", pointing at an internal LiteLLM gateway,"discovery": "auto" - Token counts show correctly. Cost shows "—" for every model, including Claude and GPT models that are priced when used through a built-in provider.
Why the current behavior hurts
Organizations that route Assistant through an internal gateway are often the most cost-conscious ones. They issue keys per team and track spend internally. Their users can see token counts but not what they cost, so they can't judge the effect of model choice or long conversations.
Requested by the administrator
Their business teams asked for cost visibility and cost thresholds when using their own AI provider and API keys: "custom endpoints currently does not provide mechanisms to limit usage or associated costs, meaning consumption is effectively unrestricted."
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 5
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de posit-dev/assistant-feedback
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
posit-dev/assistant-feedback#108 · 3 reacciones ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
posit-dev/assistant-feedback#107 ·
-
rstudio
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Posit Assistant's Posit Cloud Deployment Skill Didn't Seem to Know About manifest.json files?Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 25/100
posit-dev/assistant-feedback#161 ·
Todos los issues de posit-dev/assistant-feedback
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Lincoln-cn/JAiRouter#1452 ·
Los mantenedores suelen responder en 1 día
-
accepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
future-agi/future-agi#6351 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 2 días