Skip to content

Commit

Permalink
fix: update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
FYLSen committed Dec 13, 2024
1 parent 99b4753 commit e0622be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cf-worker-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class AIService {
case 'anthropic':
return 'https://api.anthropic.com/v1/messages'
case 'google':
return 'https://generativelanguage.googleapis.com/v1beta/models/${this.model}:generateContent?key=${this.apiKey}'
return `https://generativelanguage.googleapis.com/v1beta/models/${this.model}:generateContent?key=${this.apiKey}`
default:
throw new Error(`No default endpoint for provider: ${this.provider}`)
}
Expand Down

0 comments on commit e0622be

Please sign in to comment.