mylomen-server/infrastructure/remote_http/ai_service_imp_test.go
shaoyongjun 342fbf9a61 to:sync
2024-10-08 22:06:28 +08:00

18 lines
351 B
Go

package remote_http
import (
"context"
"fmt"
"testing"
)
func TestOpenRouter(t *testing.T) {
res, err := AiOpenRouter.Completions(context.Background(), "你好", "test")
fmt.Println(res, err)
}
func TestOllamaRouter(t *testing.T) {
res, err := AiOllama.Completions(context.Background(), "红烧肉怎么做", "test")
fmt.Println(res, err)
}