aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-01-30 20:35:36 -0500
committerXe Iaso <me@xeiaso.net>2024-01-30 20:36:54 -0500
commit8e74dba0929c95e4a416d59d1e76ecaa4fed6d11 (patch)
tree15eb90b9fccbadb6178b9f6a7ec0fed1115ede02 /web
parentcfae1ba727e97f8b9c5a2766ffcb79a72b283f8b (diff)
downloadx-8e74dba0929c95e4a416d59d1e76ecaa4fed6d11.tar.xz
x-8e74dba0929c95e4a416d59d1e76ecaa4fed6d11.zip
cmd/mimi: start making Mimi real
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'web')
-rw-r--r--web/ollama/ollama.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/ollama/ollama.go b/web/ollama/ollama.go
index eca0439..130dc34 100644
--- a/web/ollama/ollama.go
+++ b/web/ollama/ollama.go
@@ -34,7 +34,7 @@ type CompleteRequest struct {
Messages []Message `json:"messages"`
Format *string `json:"format,omitempty"`
Template *string `json:"template,omitempty"`
- Stream bool `json:"stream,omitempty"`
+ Stream bool `json:"stream"`
Options map[string]any `json:"options"`
}
@@ -57,7 +57,7 @@ func (c *Client) Chat(ctx context.Context, inp *CompleteRequest) (*CompleteRespo
return nil, fmt.Errorf("ollama: error encoding request: %w", err)
}
- req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.baseURL+"/chat", buf)
+ req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.baseURL+"/api/chat", buf)
if err != nil {
return nil, fmt.Errorf("ollama: error creating request: %w", err)
}