diff --git a/docs/blog/posts/open_source.md b/docs/blog/posts/open_source.md index af7426fc7..9b3a766da 100644 --- a/docs/blog/posts/open_source.md +++ b/docs/blog/posts/open_source.md @@ -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, ) diff --git a/docs/hub/llama-cpp-python.md b/docs/hub/llama-cpp-python.md index f9205d668..3f3b9874d 100644 --- a/docs/hub/llama-cpp-python.md +++ b/docs/hub/llama-cpp-python.md @@ -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)! )