Skip to content

Commit

Permalink
Add Example Images (#21)
Browse files Browse the repository at this point in the history
Co-authored-by: Robby <[email protected]>
  • Loading branch information
h0rv and h0rv authored May 25, 2024
1 parent c5d4f7b commit 272b852
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ func assert(condition bool, message string) {
<details>
<summary>Images with OpenAI</summary>

![List of movies](https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/openai/books.png)

<details>
<summary>Running</summary>

Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -437,6 +439,8 @@ func main() {
<details>
<summary>Images with Anthropic</summary>

![List of books](https://raw.githubusercontent.com/instructor-ai/instructor-go/main/examples/images/anthropic/movies.png)

<details>
<summary>Running</summary>

Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion examples/images/anthropic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Binary file added examples/images/anthropic/movies.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/images/openai/books.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion examples/images/openai/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 272b852

Please sign in to comment.