44 lines
751 B
TypeScript
44 lines
751 B
TypeScript
export type NomadOllamaModel = {
|
|
id: string
|
|
name: string
|
|
description: string
|
|
estimated_pulls: string
|
|
model_last_updated: string
|
|
first_seen: string
|
|
tags: NomadOllamaModelTag[]
|
|
}
|
|
|
|
export type NomadOllamaModelTag = {
|
|
name: string
|
|
size: string
|
|
context: string
|
|
input: string
|
|
}
|
|
|
|
export type NomadOllamaModelAPIResponse = {
|
|
success: boolean
|
|
message: string
|
|
models: NomadOllamaModel[]
|
|
}
|
|
|
|
export type OllamaChatMessage = {
|
|
role: 'system' | 'user' | 'assistant'
|
|
content: string
|
|
}
|
|
|
|
export type OllamaChatRequest = {
|
|
model: string
|
|
messages: OllamaChatMessage[]
|
|
stream?: boolean
|
|
}
|
|
|
|
export type OllamaChatResponse = {
|
|
model: string
|
|
created_at: string
|
|
message: {
|
|
role: string
|
|
content: string
|
|
}
|
|
done: boolean
|
|
}
|