From 1d89f290d04b9ec95c5ed3124b204d99cfd16320 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 8 May 2024 11:08:01 -0400 Subject: [PATCH] fix: Update llama-cpp-python examples to use `patch` instead of `from_openai` (#656) --- docs/blog/posts/open_source.md | 2 +- docs/hub/llama-cpp-python.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)! )