Skip to content

Releases: posit-dev/chatlas

chatlas 0.3.0

20 Dec 23:56
Compare
Choose a tag to compare

New features

  • Chat's .tokens() method gains a values 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)

Bug fixes

  • ChatOllama no longer fails when a OPENAI_API_KEY environment variable is not set.
  • ChatOpenAI now correctly includes the relevant detail on ContentImageRemote() input.
  • ChatGoogle now correctly logs its token_usage(). (#23)

chatlas 0.2.0

11 Dec 22:51
Compare
Choose a tag to compare
v0.2.0

Don't make API testing a strict pre-requisite for release