AgentOps-AI / AgentOps-AI/tokencost

refactor `model` parameter type to be enum

未关闭
#7 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
good first issue wontfix
主要语言
Python
星标
2k
派生
105
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。