mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
fix: override PDF support detection for Claude 3.5 Sonnet
This commit is contained in:
parent
b8f36c8277
commit
5cfcf255e9
1 changed files with 3 additions and 0 deletions
|
@ -710,6 +710,9 @@ class Coder:
|
||||||
supports_images = self.main_model.info.get("supports_vision")
|
supports_images = self.main_model.info.get("supports_vision")
|
||||||
supports_pdfs = self.main_model.info.get("supports_pdf_input")
|
supports_pdfs = self.main_model.info.get("supports_pdf_input")
|
||||||
|
|
||||||
|
# https://github.com/BerriAI/litellm/pull/6928
|
||||||
|
supports_pdfs = "claude-3-5-sonnet-20241022" in self.main_model.name
|
||||||
|
|
||||||
if not (supports_images or supports_pdfs):
|
if not (supports_images or supports_pdfs):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue