Skip to content

Use 4o-mini but get warnings about 4o #112

@Boltzmachine

Description

@Boltzmachine
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions