Skip to content

Commit

Permalink
Update provider.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fanweixiao committed Mar 22, 2024
1 parent aa98f23 commit 79ee097
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/bridge/ai/provider/cfopenai/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ func NewProvider(cfEndpoint, apiKey, model string) *CloudflareOpenAIProvider {
if model == "" {
model = os.Getenv("OPENAI_MODEL")
}
if cfEndpoint == "" {
ylog.Error("cfEndpoint is required")
os.Exit(-1)
}
// if cfEndpoint == "" {
// ylog.Error("cfEndpoint is required")
// }
ylog.Debug("new cloudflare openai provider", "api_key", apiKey, "model", model, "cloudflare_endpoint", cfEndpoint)
return &CloudflareOpenAIProvider{
CfEndpoint: cfEndpoint,
Expand Down

0 comments on commit 79ee097

Please sign in to comment.