Open
Description
Changes Overview
We have made two significant changes that require user action:
-
Model Configuration Moved to JSON
- All model configurations have been moved from environment variables to
public/config/models.json
- This includes:
- Model IDs and names
- Provider information
- Tool calling configuration
- Model status (enabled/disabled)
- All model configurations have been moved from environment variables to
-
Environment Variable Updates
- Removed model-specific environment variables:
NEXT_PUBLIC_OLLAMA_MODEL
NEXT_PUBLIC_OLLAMA_TOOL_CALL_MODEL
NEXT_PUBLIC_AZURE_DEPLOYMENT_NAME
NEXT_PUBLIC_OPENAI_COMPATIBLE_MODEL
- Renamed environment variable:
NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY
→ENABLE_SAVE_CHAT_HISTORY
- Removed model-specific environment variables:
Required Actions
1. Update Model Configuration
Development Mode
Edit public/config/models.json
directly with your model configurations:
{
"models": [
{
"id": "model-id",
"name": "Model Name",
"provider": "Provider Name",
"providerId": "provider-id",
"enabled": true,
"toolCallType": "native|manual",
"toolCallModel": "tool-call-model-id" // only if toolCallType is "manual"
}
]
}
Docker Mode
Using Prebuilt Image
When using the prebuilt image (ghcr.io/miurla/morphic:latest
), create a models.json
file alongside your .env.local
and update your docker-compose.yml to mount it:
services:
morphic:
image: ghcr.io/miurla/morphic:latest
env_file: .env.local
volumes:
- ./models.json:/app/public/config/models.json
Building Your Own Image
When building your own Docker image from source:
- Clone the repository
- Edit
public/config/models.json
directly with your configurations - Build and run the image using docker-compose
2. Update Environment Variables
- Remove the following variables from your .env.local:
NEXT_PUBLIC_OLLAMA_MODEL
NEXT_PUBLIC_OLLAMA_TOOL_CALL_MODEL
NEXT_PUBLIC_AZURE_DEPLOYMENT_NAME
NEXT_PUBLIC_OPENAI_COMPATIBLE_MODEL
- If you are using chat history storage, rename:
NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY
toENABLE_SAVE_CHAT_HISTORY
Documentation
For detailed configuration instructions, please refer to:
- Configuration Guide
- Example configuration in .env.local.example
Migration Guide
- For Development: Edit
public/config/models.json
directly with your model settings
For Docker: Createmodels.json
alongside.env.local
with your model settings - Update your
.env.local
by removing the deprecated variables - If using chat history, rename the environment variable
- Restart your development server or Docker container
Please report any issues you encounter during the migration.
Metadata
Metadata
Assignees
Labels
No labels