WeKnora/internal/models
ordinary being 6dd0a6a3d6
fix(embedding): read the pool's first-error guard under its own mutex (#4014)
BatchEmbedWithPool fans a batch out over the ants pool, so with
BATCH_EMBED_SIZE=1 every text becomes its own sub-batch and several workers run
at once. Each worker starts by testing firstErr to see whether an earlier
sub-batch already failed, but that read was unsynchronised while the writes are
under mu. The race detector reports it between the guard and the failure branch.

The guard exists to stop billing a provider for work whose result will be
discarded. A worker that misses the write issues the request anyway, so the race
defeats the protection it was added for.
2026-10-16 17:42:51 +08:00
..
api feat(rerank): add Cohere provider for the v2 rerank API 2026-10-12 11:57:53 +08:00
asr refactor(models): separate provider definitions, model catalogs, and runtime configuration (#3589) 2026-09-23 14:20:08 +08:00
catalog feat(models): add WeMM embedding presets and Transformers serving (#4238) 2026-10-13 17:22:24 +08:00
chat feat(agent): read chat attachments on demand (#4203) 2026-10-13 14:37:17 +08:00
embedding fix(embedding): read the pool's first-error guard under its own mutex (#4014) 2026-10-16 17:42:51 +08:00
imageprep feat: judge image hits by their image in rerank and show them to vision models (#4013) 2026-10-09 13:01:48 +08:00
internal/configcopy refactor(models): separate provider definitions, model catalogs, and runtime configuration (#3589) 2026-09-23 14:20:08 +08:00
limiter feat(system): expose model concurrency stats on runtime queues dashboard 2026-07-11 07:17:28 +08:00
parity feat(models): add WeMM embedding presets and Transformers serving (#4238) 2026-10-13 17:22:24 +08:00
providers feat(rerank): add Cohere provider for the v2 rerank API 2026-10-12 11:57:53 +08:00
rerank feat(rerank): add Cohere provider for the v2 rerank API 2026-10-12 11:57:53 +08:00
runtime fix(models): align configuration and multimodal embedding workflows (#4080) 2026-10-10 11:06:00 +08:00
utils feat: integrate ChatBot provider and docreader 2026-04-13 17:47:24 +08:00
vlm refactor(image): turn the hard-coded image flow into configurable pipelines (#3746) 2026-10-16 16:18:57 +08:00
capabilities.go refactor(models): separate provider definitions, model catalogs, and runtime configuration (#3589) 2026-09-23 14:20:08 +08:00
legacy_keys.go refactor(models): separate provider definitions, model catalogs, and runtime configuration (#3589) 2026-09-23 14:20:08 +08:00
model.go refactor(models): separate provider definitions, model catalogs, and runtime configuration (#3589) 2026-09-23 14:20:08 +08:00
model_type.go refactor(models): separate provider definitions, model catalogs, and runtime configuration (#3589) 2026-09-23 14:20:08 +08:00