Chat
's.tokens()
method gains avalues
argument. Set it to"discrete"
to get a result that can be summed to determine the token cost of submitting the current turns. The default ("cumulative"
), remains the same (the result can be summed to determine the overall token cost of the conversation).Chat
gains a.token_count()
method to help estimate token cost of new input. (#23)
ChatOllama
no longer fails when aOPENAI_API_KEY
environment variable is not set.ChatOpenAI
now correctly includes the relevantdetail
onContentImageRemote()
input.ChatGoogle
now correctly logs itstoken_usage()
. (#23)
First stable release of chatlas
, see the website to learn more https://posit-dev.github.io/chatlas/