AgentOps-AI / AgentOps-AI/tokencost

Use 4o-mini but get warnings about 4o

Open
#112 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2k
Forks
105
PR merge metrics
No merged PRs in 30d

Description

```
from tokencost import calculate_prompt_cost, calculate_completion_cost

model = "gpt-4o-mini"
prompt = [{ "role": "user", "content": "Hello world"}]
completion = "How may I assist you today?"

prompt_cost = calculate_prompt_cost(prompt, model)
```

And I got
```
Warning: gpt-4o may update over time. Returning num tokens assuming gpt-4o-2024-05-13
```

But I am using 4o-mini

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.