tryaii-mcp-server
Version:
TryAII MCP Server - 15+ AI models with comparison, cost tracking, and collective intelligence
40 lines • 1.16 kB
TypeScript
import mongoose, { Document } from 'mongoose';
export interface ModelsSessionDocument extends Document {
_id: string;
userId: string;
apiKeyId: string;
request: {
endpoint: 'list_models' | 'get_model_info';
provider?: string;
modelId?: string;
};
response: {
modelsCount?: number;
modelInfo?: {
id: string;
name: string;
provider: string;
pricing: any;
capabilities: string[];
};
success: boolean;
errorMessage?: string;
};
totalCost: number;
duration: number;
status: 'processing' | 'success' | 'error';
balanceUpdate: {
attempted: boolean;
success: boolean;
note: string;
};
clientMetadata: any;
createdAt: Date;
updatedAt: Date;
}
export declare function createModelsSessionModel(connection: mongoose.Connection): mongoose.Model<ModelsSessionDocument, {}, {}, {}, mongoose.Document<unknown, {}, ModelsSessionDocument, {}> & ModelsSessionDocument & Required<{
_id: string;
}> & {
__v: number;
}, any>;
//# sourceMappingURL=ModelsSession.d.ts.map