Miscellaneous fixes (#24996)
CI / AMD64 Build (push) Canceled after 0s
CI / AMD64 Smoke Test (push) Canceled after 0s
CI / ARM Build (push) Canceled after 0s
CI / Jetson Jetpack 6 (push) Canceled after 0s
CI / AMD64 Extra Build (push) Canceled after 0s
CI / ARM Extra Build (push) Canceled after 0s
CI / Synaptics Build (push) Canceled after 0s
CI / Assemble and push default build (push) Canceled after 0s

* tweak agents file

* add serbian latin

* fix serbian latin components

weblate put them in the wrong directory (sr_Latn). the component style was updated in weblate itself so this shouldn't happen for any future translations

* raise on empty genai embedding response so the maintainer thread survives
This commit is contained in:
Josh Hawkins
2026-11-17 14:25:05 -07:00
committed by GitHub
parent 8a7d89170b
commit 6c09629783
18 changed files with 16 additions and 6 deletions
+4
View File
@@ -68,6 +68,10 @@ class GenAIEmbedding:
f"Invalid embedding_type '{embedding_type}'. Must be 'text' or 'vision'."
)
# Callers index the result, so an empty provider response must raise
if not embeddings:
raise ValueError(f"Empty {embedding_type} embedding response from provider")
result = []
for emb in embeddings:
arr = np.asarray(emb, dtype=np.float32)