From 75f1a235f3f36aa9b679aea775ff8cd027872dfa Mon Sep 17 00:00:00 2001 From: Thomas Millar Date: Wed, 10 Apr 2024 10:14:10 -0500 Subject: [PATCH] Update gpt-4 vision example to use latest model --- pages/cookbook/gpt4-vision.livemd | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pages/cookbook/gpt4-vision.livemd b/pages/cookbook/gpt4-vision.livemd index df9dcbf..c6aed2d 100644 --- a/pages/cookbook/gpt4-vision.livemd +++ b/pages/cookbook/gpt4-vision.livemd @@ -49,9 +49,8 @@ end {:ok, result} = Instructor.chat_completion( - model: "gpt-4-vision-preview", + model: "gpt-4-turbo", response_model: Product, - mode: :md_json, messages: [ %{ role: "user", @@ -60,8 +59,7 @@ end %{type: "image_url", image_url: %{url: base64_image, detail: "high"}} ] } - ], - max_tokens: 1800 + ] ) result @@ -78,4 +76,4 @@ result } ``` - +