chattr icon indicating copy to clipboard operation
chattr copied to clipboard

Support for Azure OpenAI API Service

Open jorgesinval opened this issue 1 year ago • 2 comments

Is it possible to configure Azure OpenAI API Service within chattr?

jorgesinval avatar Jul 06 '24 07:07 jorgesinval

Hi! Good news! Just completed an overhaul of the package, so you can start using any ellmer Chat object. That package does integrate with Azure OpenAI: https://ellmer.tidyverse.org/reference/chat_azure.html

To use install the dev version:

pak::pak("mlverse/chattr")

Then it should basically be as easy as:

  my_chat <- ellmer:: chat_azure(deployment_id = "gpt-4o-mini")
  chattr_use(my_chat)

You should also be able to set your chat_azure() connection to be used by default when starting an R session using the .chattr_chat option, see Pre-set an R option here: https://mlverse.github.io/chattr/#using

edgararuiz avatar May 05 '25 20:05 edgararuiz

Yes, I ended up using ellmer as a solution.

jorgesinval avatar May 06 '25 07:05 jorgesinval

New chattr version 0.3.0, now on CRAN

edgararuiz avatar May 28 '25 19:05 edgararuiz