mylomen-server/infrastructure/remote_http/ai_service_imp_test.go

18 lines
351 B
Go
Raw Normal View History

2024-05-22 17:39:32 +08:00
package remote_http
import (
"context"
"fmt"
"testing"
)
func TestOpenRouter(t *testing.T) {
res, err := AiOpenRouter.Completions(context.Background(), "你好", "test")
fmt.Println(res, err)
}
2024-10-08 22:06:28 +08:00
func TestOllamaRouter(t *testing.T) {
res, err := AiOllama.Completions(context.Background(), "红烧肉怎么做", "test")
fmt.Println(res, err)
}