Commit 14ef34e
committed
feat: support provider/model slash format in model strings
resolveModelOption() now parses 'anthropic/claude-haiku' as provider
'anthropic' + model 'claude-haiku' when the prefix before the first
slash matches a known provider in PROVIDER_DEFAULTS. OpenRouter model
paths like 'meta-llama/llama-3.1-8b' are unaffected since 'meta-llama'
is not a known provider ID.1 parent 87c0509 commit 14ef34e
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
0 commit comments