Feat: allow initialize Redis without password (#10856)

### What problem does this PR solve?

Allow initialize Redis without password.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Yongteng Lei
2025-10-29 09:45:28 +08:00
committed by GitHub
parent 95fad5d523
commit c0c2a10680
3 changed files with 6 additions and 4 deletions

View File

@ -526,7 +526,7 @@ class OllamaCV(Base):
try:
response = self.client.generate(
model=self.model_name,
prompt=prompt[0]["content"][0]["text"],
prompt=prompt[0]["content"],
images=[image],
)
ans = response["response"].strip()