feat: Add expert source selector UI

- Add expert source dropdown in TransformationInputPanel
  - Options: LLM 生成, Wikidata, ConceptNet
  - Shows description for each source
- Pass expertSource through App -> TransformationPanel -> hook -> API
- Default source remains 'llm'

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-04 14:59:27 +08:00
parent 43785db595
commit 8777e27cbb
4 changed files with 48 additions and 4 deletions

View File

@@ -7,11 +7,13 @@ import type {
ExpertTransformationDAGResult,
ExpertProfile,
CategoryDefinition,
ExpertSource,
} from '../types';
interface UseExpertTransformationOptions {
model?: string;
temperature?: number;
expertSource?: ExpertSource;
}
export function useExpertTransformation(options: UseExpertTransformationOptions = {}) {
@@ -60,6 +62,7 @@ export function useExpertTransformation(options: UseExpertTransformationOptions
expert_count: expertConfig.expert_count,
keywords_per_expert: expertConfig.keywords_per_expert,
custom_experts: expertConfig.custom_experts,
expert_source: options.expertSource,
model: options.model,
temperature: options.temperature,
},