You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Internal PostgreSQL**: Built-in PostgreSQL service
91
91
-**External Database**: Connect to external PostgreSQL instance
92
92
-**Volume Type**: Named volume or bind mount for data storage
93
93
94
-
### License
94
+
####License
95
95
-**Public Test Key**: Default public test license
96
96
-**Custom License Key**: Use your own license key
97
97
98
-
### API Configuration
99
-
-**Anthropic**: Official Anthropic API
98
+
#### API Configuration
99
+
100
+
The application dynamically loads provider configurations from the docs repository at `https://docs.hagicode.com/presets/claude-code/providers/`. Available providers include:
101
+
102
+
-**Anthropic Official**: Official Anthropic API
100
103
-**Zhipu AI (ZAI)**: Chinese AI provider with Anthropic-compatible API
104
+
-**Aliyun DashScope**: Aliyun's AI service with Anthropic-compatible API
105
+
-**MiniMax**: MiniMax AI service with Anthropic-compatible API
101
106
-**Custom**: Custom API endpoint with Anthropic-compatible interface
102
107
103
-
### Volume Mounts
108
+
##### Provider Configuration Fallback
109
+
110
+
The application uses a three-tier fallback strategy for provider configurations:
111
+
112
+
1.**Primary**: Fetch from docs repository (`https://docs.hagicode.com/presets/claude-code/providers/`)
113
+
2.**Fallback**: Use embedded backup configuration (included in code)
114
+
3.**Legacy**: Use hardcoded constants (for backward compatibility)
115
+
116
+
This ensures the application always works, even if the docs repository is temporarily unavailable.
117
+
118
+
##### Environment Variable Override
119
+
120
+
For local development, you can override the docs repository URL:
121
+
122
+
```bash
123
+
# Override to use local docs repository
124
+
VITE_PRESETS_BASE_URL=http://localhost:3000 npm run dev
125
+
126
+
# Or specify a different remote URL
127
+
VITE_PRESETS_BASE_URL=https://your-custom-docs-url.com npm run dev
128
+
```
129
+
130
+
The default value is `https://docs.hagicode.com`.
131
+
132
+
##### Embedded Backup Synchronization
133
+
134
+
The embedded backup configuration (`src/lib/docker-compose/providerConfigLoader.ts`) is synchronized with the docs repository presets. When adding new providers or updating existing ones in the docs repository, update the `EMBEDDED_BACKUP` constant to include the latest data.
135
+
136
+
#### Volume Mounts
104
137
-**Work Directory**: Path to your code repository
105
138
-**Root User Warning**: Detection and warning for root-owned directories
106
139
-**User Permission Mapping**: PUID/PGID configuration for Linux
0 commit comments