gadget/gadget-code/tests
Rob Colbert a7a6a91a13 fix: pass requested vector dimension to embedding API (Ollama + OpenAI)
The qwen3-embedding:4b model defaults to 2560-d vectors. Both
Ollama (client.embed()) and OpenAI support a dimensions parameter
to request a specific output size. This change threads the configured
qdrant.vectorSize through the AI provider layer so the model returns
vectors matching the Qdrant collection dimensions.

- AiApi.embeddings() now accepts optional dimensions parameter
- Ollama provider: switched from client.embeddings() to client.embed()
- OpenAI provider: passes dimensions to embeddings.create()
- VectorStoreService.getEmbedding() passes env.qdrant.vectorSize
- Added unit tests for dimension mismatch detection, collection
  creation, and search guards
2026-05-19 16:21:04 -04:00
..
e2e make reasoning effort configurable; remove sign up concept 2026-05-08 11:40:30 -04:00
fixtures socket protocol completeness, fixes, and tests 2026-04-30 16:51:33 -04:00
helpers move from Types.ObjectId to GadgetId (a string) 2026-05-01 14:31:00 -04:00
app.test.ts make reasoning effort configurable; remove sign up concept 2026-05-08 11:40:30 -04:00
code-session.test.ts fix: update code-session tests to expect reality 2026-05-17 18:53:50 -04:00
drone-service.test.ts socket protocol completeness, fixes, and tests 2026-04-30 16:51:33 -04:00
drone-session.test.ts make reasoning effort configurable; remove sign up concept 2026-05-08 11:40:30 -04:00
project-api.test.ts Pull Project initial implementation 2026-05-15 19:34:08 -04:00
socket-service.test.ts finishing touches on move to GadgetId from ObjectId 2026-05-01 15:07:37 -04:00
vector-store.test.ts fix: pass requested vector dimension to embedding API (Ollama + OpenAI) 2026-05-19 16:21:04 -04:00