Revert "sub plan page (#885)" (#886)

This reverts commit 443ad37b6a.
This commit is contained in:
Archer
2024-02-23 17:48:15 +08:00
committed by GitHub
parent 443ad37b6a
commit fd9b6291af
246 changed files with 4281 additions and 6286 deletions

View File

@@ -6,7 +6,8 @@ export type LLMModelItemType = {
quoteMaxToken: number;
maxTemperature: number;
charsPointsPrice: number; // 1k chars=n points
inputPrice: number;
outputPrice: number;
censor?: boolean;
vision?: boolean;
@@ -26,7 +27,8 @@ export type VectorModelItemType = {
model: string;
name: string;
defaultToken: number;
charsPointsPrice: number;
inputPrice: number;
outputPrice: number;
maxToken: number;
weight: number;
hidden?: boolean;
@@ -36,7 +38,8 @@ export type VectorModelItemType = {
export type ReRankModelItemType = {
model: string;
name: string;
charsPointsPrice: number;
inputPrice: number;
outputPrice?: number;
requestUrl?: string;
requestAuth?: string;
};
@@ -44,12 +47,14 @@ export type ReRankModelItemType = {
export type AudioSpeechModelType = {
model: string;
name: string;
charsPointsPrice: number;
inputPrice: number;
outputPrice?: number;
voices: { label: string; value: string; bufferId: string }[];
};
export type WhisperModelType = {
model: string;
name: string;
charsPointsPrice: number; // 60s = n points
inputPrice: number;
outputPrice?: number;
};

View File

@@ -8,7 +8,8 @@ export const defaultQAModels: LLMModelItemType[] = [
maxResponse: 16000,
quoteMaxToken: 13000,
maxTemperature: 1.2,
charsPointsPrice: 0,
inputPrice: 0,
outputPrice: 0,
censor: false,
vision: false,
datasetProcess: true,
@@ -25,7 +26,8 @@ export const defaultVectorModels: VectorModelItemType[] = [
{
model: 'text-embedding-ada-002',
name: 'Embedding-2',
charsPointsPrice: 0,
inputPrice: 0,
outputPrice: 0,
defaultToken: 500,
maxToken: 3000,
weight: 100