47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
export type AIEngineType = "chatgpt" | "perplexity" | "kimi" | "wenxin" | "doubao";
|
|
|
|
export interface AIEngineOption {
|
|
value: AIEngineType;
|
|
label: string;
|
|
}
|
|
|
|
export const AI_ENGINE_OPTIONS: AIEngineOption[] = [
|
|
{ value: "chatgpt", label: "ChatGPT" },
|
|
{ value: "perplexity", label: "Perplexity" },
|
|
{ value: "kimi", label: "Kimi" },
|
|
{ value: "wenxin", label: "文心一言" },
|
|
{ value: "doubao", label: "豆包" },
|
|
];
|
|
|
|
export interface AIQueryResult {
|
|
engine_type: string;
|
|
query: string;
|
|
raw_response: string;
|
|
has_brand_citation: boolean;
|
|
has_competitor_citation: boolean;
|
|
brand_context: string | null;
|
|
competitor_contexts: string[];
|
|
response_time_ms: number;
|
|
timestamp: string;
|
|
}
|
|
|
|
export interface CitationRate {
|
|
total_engines: number;
|
|
brand_citation_count: number;
|
|
brand_citation_rate: number;
|
|
competitor_citation_count: number;
|
|
competitor_citation_rate: number;
|
|
}
|
|
|
|
export interface AIEnginesResponse {
|
|
results: AIQueryResult[];
|
|
citation_rate: CitationRate;
|
|
avg_response_time_ms: number;
|
|
}
|
|
|
|
export interface AIQueryRequest {
|
|
engines: AIEngineType[];
|
|
query: string;
|
|
brand_id: string;
|
|
}
|