Refactor config

This commit is contained in:
decolua
2026-03-12 16:20:46 +07:00
parent c893aeaa4d
commit b0c6b61398
35 changed files with 575 additions and 650 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { detectFormat } from "../services/provider.js";
import { translateResponse, initState } from "../translator/index.js";
import { FORMATS } from "../translator/formats.js";
import { SKIP_PATTERNS } from "../config/constants.js";
import { SKIP_PATTERNS } from "../config/runtimeConfig.js";
import { formatSSE } from "./stream.js";
/**
+1 -1
View File
@@ -1,4 +1,4 @@
import { ERROR_TYPES, DEFAULT_ERROR_MESSAGES } from "../config/constants.js";
import { ERROR_TYPES, DEFAULT_ERROR_MESSAGES } from "../config/runtimeConfig.js";
/**
* Build OpenAI-compatible error response body
+1 -1
View File
@@ -1,4 +1,4 @@
import { MEMORY_CONFIG } from "../config/constants.js";
import { MEMORY_CONFIG } from "../config/runtimeConfig.js";
const isCloud = typeof caches !== "undefined" && typeof caches === "object";
+1 -1
View File
@@ -9,7 +9,7 @@
*/
import crypto from "crypto";
import { MEMORY_CONFIG } from "../config/constants.js";
import { MEMORY_CONFIG } from "../config/runtimeConfig.js";
// Runtime storage: Key = connectionId, Value = { sessionId, lastUsed }
const runtimeSessionStore = new Map();