thmsmlr / instructor_ex

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

Overwrite the OpenAI Client HTTP defaults #18

Closed thmsmlr closed 7 months ago

thmsmlr commented 7 months ago

It's tedious continually adding the,

  config: [
    openai: [
      http_options: [recv_timeout: :infinity, async: :once]
    ]
  ]

every time you install. The defaults make no sense for the common usecase. Let's change that