basic_test.go 552 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
//go:build integration

package integration

import (
	"context"
	"net/http"
	"testing"
	"time"

11
	"github.com/ollama/ollama/api"
12
13
14
)

func TestOrcaMiniBlueSky(t *testing.T) {
15
	ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
16
17
18
19
20
21
22
23
24
25
26
27
28
	defer cancel()
	// Set up the test data
	req := api.GenerateRequest{
		Model:  "orca-mini",
		Prompt: "why is the sky blue?",
		Stream: &stream,
		Options: map[string]interface{}{
			"temperature": 0,
			"seed":        123,
		},
	}
	GenerateTestHelper(ctx, t, &http.Client{}, req, []string{"rayleigh"})
}