"docs/en/sampling_params.md" did not exist on "dafafe5b111d1a74ecade029d342bbea5df4edfa"
basic_test.go 566 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
	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
27
	GenerateTestHelper(ctx, t, &http.Client{}, req, []string{"rayleigh", "scattering"})
28
}