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 摘要。