generated from RickCreator87/AIGateway-Ollama-fc3eadfe
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAPI Keys
More file actions
23 lines (23 loc) · 640 Bytes
/
API Keys
File metadata and controls
23 lines (23 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# API Keys
API keys are used to:
Authenticate requests
Optionally map users to models or behaviors
For development, keys can be defined via environment variables.
Important:
This project is not intended to expose Ollama directly to the public internet without additional security.
---
## Configuration
Environment variables are defined in .env.example.
Typical options include:
Ollama base URL
Default model
API key list or mapping
Gateway port
---
## Error Handling
The gateway attempts to normalize errors into OpenAI-style responses.
Common error cases:
Ollama not running
Model not available
Invalid request payload
Unauthorized API key