mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-09-24 16:29:01 +08:00
fix(docreader): add detail parameter for openai interface
This commit is contained in:
@@ -183,7 +183,9 @@ class Caption:
|
||||
role="user",
|
||||
content=[
|
||||
Content(type="text", text=self.prompt),
|
||||
Content(type="image_url", image_url=ImageUrl(url=image_url)),
|
||||
Content(
|
||||
type="image_url", image_url=ImageUrl(url=image_url, detail="auto")
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user