2024-03-23 13:24:18 +00:00
|
|
|
//go:build integration
|
|
|
|
|
|
|
|
package integration
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"net/http"
|
|
|
|
"testing"
|
|
|
|
"time"
|
|
|
|
|
2024-03-26 20:04:17 +00:00
|
|
|
"github.com/ollama/ollama/api"
|
2024-03-23 13:24:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestOrcaMiniBlueSky(t *testing.T) {
|
2024-03-24 23:22:38 +00:00
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
|
2024-03-23 13:24:18 +00:00
|
|
|
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,
|
|
|
|
},
|
|
|
|
}
|
2024-03-27 18:02:06 +00:00
|
|
|
GenerateTestHelper(ctx, t, &http.Client{}, req, []string{"rayleigh", "scattering"})
|
2024-03-23 13:24:18 +00:00
|
|
|
}
|