diff --git a/README.md b/README.md index 3cb7164..177613c 100644 --- a/README.md +++ b/README.md @@ -295,6 +295,8 @@ func assert(condition bool, message string) {
Images with OpenAI +![List of movies](https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/openai/books.png) +
Running @@ -347,7 +349,7 @@ func main() { panic(err) } - url := "https://utfs.io/f/fe55d6bd-e920-4a6f-8e93-a4c9dd851b90-eivhb2.png" + url := "https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/openai/books.png" var bookCatalog BookCatalog err = client.CreateChatCompletion( @@ -437,6 +439,8 @@ func main() {
Images with Anthropic +![List of books](https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/anthropic/movies.png) +
Running @@ -491,7 +495,7 @@ func main() { panic(err) } - url := "https://utfs.io/f/bd0dbae6-27e3-4604-b640-fd2ffea891b8-fxyywt.jpeg" + url := "https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/anthropic/movies.png" var movieCatalog MovieCatalog err = client.CreateChatCompletion( diff --git a/examples/images/anthropic/main.go b/examples/images/anthropic/main.go index 592bf20..2dd8957 100644 --- a/examples/images/anthropic/main.go +++ b/examples/images/anthropic/main.go @@ -41,7 +41,7 @@ func main() { panic(err) } - url := "https://utfs.io/f/bd0dbae6-27e3-4604-b640-fd2ffea891b8-fxyywt.jpeg" + url := "https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/anthropic/movies.png" var movieCatalog MovieCatalog err = client.CreateChatCompletion( diff --git a/examples/images/anthropic/movies.jpg b/examples/images/anthropic/movies.jpg new file mode 100644 index 0000000..fae476c Binary files /dev/null and b/examples/images/anthropic/movies.jpg differ diff --git a/examples/images/openai/books.png b/examples/images/openai/books.png new file mode 100644 index 0000000..489c87a Binary files /dev/null and b/examples/images/openai/books.png differ diff --git a/examples/images/openai/main.go b/examples/images/openai/main.go index 1ae24ae..ae6d381 100644 --- a/examples/images/openai/main.go +++ b/examples/images/openai/main.go @@ -39,7 +39,7 @@ func main() { panic(err) } - url := "https://utfs.io/f/fe55d6bd-e920-4a6f-8e93-a4c9dd851b90-eivhb2.png" + url := "https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/openai/books.png" var bookCatalog BookCatalog err = client.CreateChatCompletion(