Skip to content

Commit

Permalink
fix: Update llama-cpp-python examples to use patch instead of `from…
Browse files Browse the repository at this point in the history
…_openai` (#656)
  • Loading branch information
abetlen committed May 8, 2024
1 parent b4e5346 commit 1d89f29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/blog/posts/open_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ llama = llama_cpp.Llama(
)


create = instructor.from_openai(
create = instructor.patch(
create=llama.create_chat_completion_openai_v1,
mode=instructor.Mode.JSON_SCHEMA,
)
Expand Down
2 changes: 1 addition & 1 deletion docs/hub/llama-cpp-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ llama = llama_cpp.Llama(
)


create = instructor.from_openai(
create = instructor.patch(
create=llama.create_chat_completion_openai_v1,
mode=instructor.Mode.JSON_SCHEMA, # (2)!
)
Expand Down

0 comments on commit 1d89f29

Please sign in to comment.