UNPKG

vibe-tools

Version:
13 lines (12 loc) 546 B
import { Provider } from '../types'; /** * Calculate string similarity score between 0 and 1 * 1 means strings are identical, 0 means completely different */ export declare function stringSimilarity(str1: string, str2: string): number; /** * Find similar models from a list of available models * Returns top 5 most similar models */ export declare function getSimilarModels(model: string, availableModels: Set<string>): string[]; export declare function getSimilarProviders(provider: string, availableProviders: Set<Provider>): Provider[];