Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Server port configuration | 3000 |
| AI_MODEL | Yes | AI model name | |
| BASE_URL | No | Base URL for the service | http://localhost |
| AI_API_KEY | Yes | AI service API key | |
| AI_API_URL | No | AI service API URL for SQL Chat | https://api-inference.modelscope.cn/v1 |
| MYSQL_HOST | No | MySQL database host | 127.0.0.1 |
| MYSQL_PORT | No | MySQL database port | 3306 |
| MYSQL_USER | No | MySQL database user | root |
| OSS_BUCKET | No | OSS bucket name (optional) | |
| OSS_REGION | No | OSS region (optional) | |
| REDIS_HOST | No | Redis host for session and quota management | 127.0.0.1 |
| REDIS_PORT | No | Redis port | 6379 |
| STATIC_DIR | No | Static directory for frontend files | web-dist |
| AI_MAX_TOKENS | No | AI model max tokens | 2048 |
| AI_TEMPERATURE | No | AI model temperature setting | 0.7 |
| MYSQL_DATABASE | Yes | MySQL database name | |
| MYSQL_PASSWORD | Yes | MySQL database password | |
| REDIS_PASSWORD | No | Redis password (optional) | |
| OSS_ACCESS_KEY_ID | No | OSS access key ID (optional) | |
| OSS_ACCESS_KEY_SECRET | No | OSS access key secret (optional) |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |