AgentOps-AI / AgentOps-AI/tokencost

refactor `model` parameter type to be enum

Abierto
#7 0 comentarios 0 reacciones 0 asignados Ver en GitHub
good first issue wontfix
Lenguaje dominante
Python
Estrellas
2k
Forks
105
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

We currently have error handling for when the `model` string input doesn't match our dictionary, but can eventually refactor to make it an enum that matches one of the below model names in our constants dictionary to make it even more explicit:

https://github.com/AgentOps-AI/tokencost/blob/main/tokencost/constants.py

Not too familiar with Python so I'm not sure if code editors have shortcuts for viewing definitions of enums like TypeScript does, but our code is easy enough to read that in our error messages as well as the code itself we just redirect people to the constants file

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.