Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsmlr committed Dec 19, 2023
1 parent 9c2d2bc commit dc590a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Simply create an ecto schema, optionally provide a `@doc` to the schema definiti

## Installation

In your mix.exs,

```elixir
def deps do
[
Expand All @@ -81,6 +83,13 @@ def deps do
end
```

Then for configuration using the default OpenAI client,

```elixir
config :openai, api_key: "sk-........"
config :openai, http_options: [recv_timeout: 10 * 60 * 1000]
```

## TODO

- [x] Tests
Expand Down
2 changes: 2 additions & 0 deletions lib/instructor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ defmodule Instructor do
Instructor can be configured in your `config.exs` file:
config :instructor, adapter: Instructor.Adapters.OpenAI
config :openai, api_key: "sk-........"
config :openai, http_options: [recv_timeout: 10 * 60 * 1000]
Other adapters are Instructor.Adapters.Llamacpp
"""
Expand Down

0 comments on commit dc590a3

Please sign in to comment.