thmsmlr / instructor_ex

Structured outputs for LLMs in Elixir
https://hexdocs.pm/instructor
432 stars 49 forks source link

Pass OpenAI config as param #9

Closed acalejos closed 4 months ago

acalejos commented 5 months ago

Allow OpenAI.Config struct to be passed as keyword param in Instructor.chat_completion. Still defaults to an empty struct as per the previous behavior.

thmsmlr commented 4 months ago

I think instead we should do the work to properly plumb the config through instructor to the eventual adapter call