pleumrouter 0.5.10 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/config.mjs +4 -2
package/package.json
CHANGED
package/src/config.mjs
CHANGED
|
@@ -3,8 +3,10 @@ import { join } from "node:path";
|
|
|
3
3
|
import { readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
4
4
|
import { t } from "./i18n.mjs";
|
|
5
5
|
|
|
6
|
-
// 공개 게이트웨이
|
|
7
|
-
|
|
6
|
+
// 공개 게이트웨이 루트(canonical API). /v1/* 를 Next.js Route Handler 가 프록시하는
|
|
7
|
+
// router.pleum.ai 와 달리, 이 도메인은 백엔드에 직접 붙는다 — /v1beta/* (Gemini native)
|
|
8
|
+
// 경로도 라우팅된다. 셀프호스트/스테이징은 PLEUM_BASE_URL로 덮어쓴다.
|
|
9
|
+
export const ROOT = (process.env.PLEUM_BASE_URL ?? "https://apirouter.pleum.ai")
|
|
8
10
|
.replace(/\/+$/, "")
|
|
9
11
|
.replace(/\/v1$/, ""); // 사용자가 실수로 /v1까지 붙여도 V1이 /v1/v1 이중 경로가 되지 않게 정리(L12)
|
|
10
12
|
// OpenAI 호환 엔드포인트는 /v1. (Claude Code만 루트를 쓴다 — recipes 참고)
|