Skip to content

Commit

Permalink
🚧 wip: settings for more provider
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jan 29, 2024
1 parent 44777e1 commit 6e36353
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 68 deletions.
68 changes: 0 additions & 68 deletions src/types/settings.ts

This file was deleted.

32 changes: 32 additions & 0 deletions src/types/settings/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import type { LobeAgentSession } from '@/types/session';

import { GlobalBaseSettings } from './base';
import { GlobalLLMConfig } from './modelProvider';
import { GlobalTTSConfig } from './tts';

export type GlobalDefaultAgent = Pick<LobeAgentSession, 'config' | 'meta'>;

export * from './base';
export * from './modelProvider';
export * from './tts';

export interface GlobalTool {
dalle: {
autoGenerate: boolean;
};
}

export interface GlobalServerConfig {
customModelName?: string;
enabledZhipu: boolean;
}

/**
* 配置设置
*/
export interface GlobalSettings extends GlobalBaseSettings {
defaultAgent: GlobalDefaultAgent;
languageModel: GlobalLLMConfig;
tool: GlobalTool;
tts: GlobalTTSConfig;
}

0 comments on commit 6e36353

Please sign in to comment.