合并并同步云端 API_BASE_URLS

This commit is contained in:
xiaohei
2025-12-29 18:36:10 +00:00
parent a44ce9b602
commit f71975b392
+2 -2
View File
@@ -1,13 +1,13 @@
// API client for Taiji AI Platform
// Base URLs for different services
import { getAuthToken, clearAllTokens } from "@/lib/auth"
export const API_BASE_URLS = {
dataIngestion: process.env.NEXT_PUBLIC_DATA_INGESTION_URL || "http://apimtaiji.azure-api.net/api/data-ingestion",
mcpServer: process.env.NEXT_PUBLIC_MCP_SERVER_URL || "http://apimtaiji.azure-api.net/api/mcp",
gateway: process.env.NEXT_PUBLIC_API_GATEWAY_URL || "http://apimtaiji.azure-api.net/api/",
}
import { getAuthToken, clearAllTokens } from "@/lib/auth"
// Helper function to get API key
function getApiKey(): string | null {
if (typeof window !== "undefined") {