Compare commits

...

2 Commits

Author SHA1 Message Date
arvinxx 1eaf28e498 clean deps 2025-09-25 22:11:01 +02:00
arvinxx 5bfb876340 improve code 2025-09-25 22:10:45 +02:00
5 changed files with 11 additions and 5 deletions
-1
View File
@@ -322,7 +322,6 @@
"@types/systemjs": "^6.15.3",
"@types/ua-parser-js": "^0.7.39",
"@types/unist": "^3.0.3",
"@types/uuid": "^11.0.0",
"@types/ws": "^8.18.1",
"@typescript/native-preview": "7.0.0-dev.20250711.1",
"@vitest/coverage-v8": "^3.2.4",
+6
View File
@@ -12,6 +12,8 @@ export const ORG_NAME = 'LobeHub';
export const BRANDING_URL = {
help: undefined,
privacy: undefined,
subscription: undefined,
support: undefined,
terms: undefined,
};
@@ -27,3 +29,7 @@ export const BRANDING_EMAIL = {
business: 'hello@lobehub.com',
support: 'support@lobehub.com',
};
export const BRANDING_PROVIDER = 'lobehub';
export const COPYRIGHT = `© ${new Date().getFullYear()} ${ORG_NAME}`;
+3 -1
View File
@@ -1,11 +1,12 @@
import qs from 'query-string';
import urlJoin from 'url-join';
import { BRANDING_EMAIL, BRANDING_URL } from './branding';
import { INBOX_SESSION_ID } from './session';
const isDev = process.env.NODE_ENV === 'development';
export const UTM_SOURCE = 'chat_preview';
export const UTM_SOURCE = 'chat_community';
export const OFFICIAL_URL = 'https://lobechat.com';
export const OFFICIAL_PREVIEW_URL = 'https://chat-preview.lobehub.com';
@@ -62,6 +63,7 @@ export const LOBE_URL_IMPORT_NAME = 'settings';
export const RELEASES_URL = urlJoin(GITHUB, 'releases');
export const mailTo = (email: string) => `mailto:${email}`;
export const SUPPORT_URL = BRANDING_URL.support ?? `mailto:${BRANDING_EMAIL.support}`;
export const AES_GCM_URL = 'https://datatracker.ietf.org/doc/html/draft-ietf-avt-srtp-aes-gcm-01';
export const BASE_PROVIDER_DOC_URL = 'https://lobehub.com/docs/usage/providers';
+2 -2
View File
@@ -133,8 +133,8 @@ export type PricingUnitName =
// Image-based pricing units
| 'imageGeneration' // for image generation models
| 'imageInput'
| 'imageInput_cacheRead'
| 'imageInput' // eg: gpt-image-1
| 'imageInput_cacheRead' // eg: gpt-image-1
| 'imageOutput';
export type PricingUnitType =
@@ -453,7 +453,6 @@ export const createOpenAICompatibleRuntime = <T extends Record<string, any> = an
headers: options?.headers,
signal: options?.signal,
});
return mp3.arrayBuffer();
} catch (error) {
throw this.handleError(error);