Commit ebdfc7b
Make
The server requires `model` (e.g. `qwen3-embedding-0.6b`); the
factory should require it too rather than silently sending a payload
the server will reject.
- `VectorizerFactory.Text2VecDigitalOcean(string model, string? baseURL = null, bool? vectorizeCollectionName = null)`
— `model` is now required and reordered to the first position,
since C# requires non-default params before default params.
- `PublicAPI.Unshipped.txt` updated to reflect the new signature
(`string! model` first).
- `Test_Text2VecDigitalOcean_Omits_Unset_Optionals` renamed to
`Test_Text2VecDigitalOcean_Omits_Unset_BaseURL`. It now passes
`model` and only asserts that `baseURL` is omitted when unset.
The old "model is also omitted when unset" assertion was
inconsistent with the spec (`model` is required by the server)
and would no longer be reachable through the factory anyway.
The `Text2VecDigitalOcean` record's `Model` property remains
nullable at the type level (matching the `Text2VecMistral` record);
required-ness is enforced at the factory entry point, which is the
documented user-facing API.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>model required on Text2VecDigitalOcean factory1 parent a86462c commit ebdfc7b
3 files changed
Lines changed: 12 additions & 8 deletions
File tree
- src
- Weaviate.Client.Tests/Unit
- Weaviate.Client
- Configure
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | 434 | | |
| 435 | + | |
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
| 461 | + | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
464 | 465 | | |
465 | 466 | | |
466 | 467 | | |
467 | 468 | | |
468 | | - | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
472 | 476 | | |
473 | 477 | | |
474 | 478 | | |
| |||
489 | 493 | | |
490 | 494 | | |
491 | 495 | | |
| 496 | + | |
492 | 497 | | |
493 | | - | |
494 | 498 | | |
495 | 499 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | | - | |
759 | 758 | | |
| 759 | + | |
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
| 763 | + | |
763 | 764 | | |
764 | | - | |
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
0 commit comments