Improve docs & Add JSON decode example (#121)

This commit is contained in:
Lianmin Zheng authored and GitHub committed 2024-01-30 05:45:27 -08:00
1 parent 0617528632
commit 97aa9b3284
19 files changed
+212 -61

No files matched your search

+1 -1
View File
@@ -296,7 +296,7 @@ def test_parallel_encoding(check_answer=True):
def test_image_qa():
@sgl.function
def image_qa(s, question):
s += sgl.user(sgl.image("image.png") + question)
s += sgl.user(sgl.image("test_image.png") + question)
s += sgl.assistant(sgl.gen("answer"))
state = image_qa.run(