Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
slundberg authored Dec 14, 2023
1 parent 3e0a976 commit 34a0135
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,22 @@ with user():
with assistant():
lm += gen("fact")
```
<img width="645" alt="image" src="https://github.com/guidance-ai/guidance/assets/3740613/f31ed7b8-1868-44d2-b14c-4842b0a40e5c">
<img width="645" alt="image" src="https://github.com/guidance-ai/guidance/assets/3740613/f31ed7b8-1868-44d2-b14c-4842b0a40e5c"><br>

14. **Multi-model support.**
```python
from guidance import image

gemini = models.VertexAI("gemini-pro-vision")

with user():
lm = gemini + "What is this a picture of?" + image("longs_peak.jpg")

with assistant():
lm += gen("answer")
```
<img width="673" alt="image" src="https://github.com/guidance-ai/guidance/assets/3740613/6450d05d-52e9-4ef5-b280-8b57e733d46d">



## Table of Contents
Expand Down

0 comments on commit 34a0135

Please sign in to comment.