Add OAuth
This commit is contained in:
19
config.example-with-auth.yaml
Normal file
19
config.example-with-auth.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
# Example configuration with Google OAuth2 authentication
|
||||
|
||||
auth:
|
||||
enabled: true
|
||||
issuer: "https://accounts.google.com"
|
||||
audience: "YOUR-CLIENT-ID.apps.googleusercontent.com"
|
||||
|
||||
providers:
|
||||
openai:
|
||||
api_key: "${OPENAI_API_KEY}"
|
||||
model: "gpt-4o-mini"
|
||||
|
||||
anthropic:
|
||||
api_key: "${ANTHROPIC_API_KEY}"
|
||||
model: "claude-3-5-sonnet-20241022"
|
||||
|
||||
google:
|
||||
api_key: "${GOOGLE_API_KEY}"
|
||||
model: "gemini-2.0-flash-exp"
|
||||
Reference in New Issue
Block a user