You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/instructor.ex
+5-2
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ defmodule Instructor do
34
34
* `:mode` - The mode to use when parsing the response, :tools, :json, :md_json (defaults to `:tools`), generally speaking you don't need to change this unless you are not using OpenAI.
35
35
* `:max_retries` - The maximum number of times to retry the LLM call if it fails, or does not pass validations.
36
36
(defaults to `0`)
37
+
* `:instructor_role` - The role to use in system messages. Defaults to `"system"`.
38
+
Some models, such as OpenAI's o1 series, require the role to be `"developer"`.
0 commit comments