First AI generated version

This commit is contained in:
Konrad Neitzel
2026-06-11 20:01:48 +02:00
commit c7d14ffee7
26 changed files with 1884 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
package gollama
import "github.com/ollama/ollama/api"
// Result is the unified non-streaming response from completion and chat calls.
type Result struct {
Text string
Model string
Thinking string
Metrics api.Metrics
Raw any // *api.GenerateResponse or *api.ChatResponse
}
// Chunk is a single streaming response fragment.
type Chunk struct {
Text string
Thinking string
Done bool
Metrics api.Metrics
}
// Progress reports model pull/push progress.
type Progress struct {
Status string
Digest string
Total int64
Completed int64
}