mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-18 21:22:28 +03:00
Jina-compatible clients POST /v1/multimodal-embeddings and currently get HTTP 404 unknown_route from the catch-all. Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
672 B
TypeScript
17 lines
672 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { mkdtempSync } from "node:fs";
|
|
import { tmpdir } from "node:os";
|
|
import { join } from "node:path";
|
|
|
|
process.env.DATA_DIR = mkdtempSync(join(tmpdir(), "omniroute-mm-embed-alias-"));
|
|
|
|
const embeddings = await import("../../src/app/api/v1/embeddings/route.ts");
|
|
const multimodal = await import("../../src/app/api/v1/multimodal-embeddings/route.ts");
|
|
|
|
test("POST/GET/OPTIONS /v1/multimodal-embeddings are the embeddings handlers", () => {
|
|
assert.equal(multimodal.POST, embeddings.POST);
|
|
assert.equal(multimodal.GET, embeddings.GET);
|
|
assert.equal(multimodal.OPTIONS, embeddings.OPTIONS);
|
|
});
|