Commit 49c0c00
refactor(acp): honour explicit acp_model in supports_vision
Now that ACPAgent.model_post_init() writes acp_model into llm.model
(merged in #2881), llm.vision_is_active() gives an authoritative
answer for explicitly-configured models via LiteLLM. Use it when the
user has set acp_model — even if they pick a non-vision variant,
that choice wins over the server-identity default.
The provider-identity fallback only kicks in when acp_model is unset
and we can't know which default model the server will pick; for all
three providers we support, that default is vision-capable.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1590e6f commit 49c0c00
2 files changed
Lines changed: 33 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
812 | 814 | | |
| 815 | + | |
| 816 | + | |
813 | 817 | | |
814 | 818 | | |
815 | 819 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2119 | 2119 | | |
2120 | 2120 | | |
2121 | 2121 | | |
2122 | | - | |
2123 | | - | |
2124 | | - | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
2125 | 2126 | | |
2126 | 2127 | | |
2127 | 2128 | | |
2128 | 2129 | | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
2129 | 2149 | | |
2130 | 2150 | | |
2131 | 2151 | | |
| |||
0 commit comments