| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| common | ||
| core | ||
| support | ||
| thirdProvider | ||
| type | ||
| worker | ||
| env.ts | ||
| package.json | ||
| tsconfig.json | ||
| type.ts |
* fix(embedding): decode base64 embedding responses before vector processing When a model's extra body config includes `encoding_format: "base64"`, the embedding API returns a base64-encoded IEEE 754 little-endian float32 array instead of a `number[]`. The previous code passed this raw string directly to `formatVectors`, which called `.reduce()` on it and threw: TypeError: a.reduce is not a function Add `decodeEmbedding()` that detects base64 strings and decodes them to `number[]` via `Buffer → Float32Array → Array.from()`, then use it in `getVectorsByText` before calling `formatVectors`. Fixes #6769 * perf: test --------- Co-authored-by: octo-patch <octo-patch@github.com> Co-authored-by: archer <545436317@qq.com>
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| common | Loading commit data... | |
| core | Loading commit data... | |
| support | Loading commit data... | |
| thirdProvider | Loading commit data... | |
| type | Loading commit data... | |
| worker | Loading commit data... | |
| env.ts | Loading commit data... | |
| package.json | Loading commit data... | |
| tsconfig.json | Loading commit data... | |
| type.ts | Loading commit data... |