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

package integration

import (
	"context"
	"testing"
	"time"

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

func TestOrcaMiniBlueSky(t *testing.T) {
14
	ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
15
16
17
18
19
20
21
22
23
24
25
	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,
		},
	}
Daniel Hiltgen's avatar
Daniel Hiltgen committed
26
	GenerateTestHelper(ctx, t, req, []string{"rayleigh", "scattering"})
27
}