giga-code
Version:
A personal AI CLI assistant powered by Grok for local development.
27 lines (26 loc) • 790 B
TypeScript
export interface OllamaModel {
name: string;
model: string;
modified_at: string;
size: number;
digest: string;
details?: {
parent_model?: string;
format?: string;
family?: string;
families?: string[];
parameter_size?: string;
quantization_level?: string;
};
}
export interface OllamaModelsResponse {
models: OllamaModel[];
}
export declare function fetchOllamaModels(baseUrl?: string): Promise<string[]>;
export declare function searchOllamaModels(query: string, baseUrl?: string): Promise<string[]>;
export declare function testOllamaConnection(baseUrl?: string): Promise<{
success: boolean;
error?: string;
modelCount?: number;
}>;
export declare function getRecommendedOllamaModels(): string[];