basic_test.go 538 B

123456789101112131415161718192021222324252627
  1. //go:build integration
  2. package integration
  3. import (
  4. "context"
  5. "testing"
  6. "time"
  7. "github.com/ollama/ollama/api"
  8. )
  9. func TestOrcaMiniBlueSky(t *testing.T) {
  10. ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
  11. defer cancel()
  12. // Set up the test data
  13. req := api.GenerateRequest{
  14. Model: "orca-mini",
  15. Prompt: "why is the sky blue?",
  16. Stream: &stream,
  17. Options: map[string]interface{}{
  18. "temperature": 0,
  19. "seed": 123,
  20. },
  21. }
  22. GenerateTestHelper(ctx, t, req, []string{"rayleigh", "scattering"})
  23. }