Repository navigation
Commit 0271189
committed
fix(plugin): make refresh optional in the plugin model domain
`ModelApi` gained a required `refresh` when the `model.refresh` endpoint was added (see anomalyco#53682). The plugin model domain inherits it, which forces every host to implement `refresh`. Since forcing a models.dev cache update is a server/CLI concern, keep it out of the plugin model domain surface so hosts and integration tests are not required to provide it.1 parent 1c3eeab commit 0271189
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
0 commit comments