The following steps are required to configure Magic's language model:
- Getting the environment file: by ordering
cp .env.example .envcap (a poem)cp config/.env_super_magic.example .env_super_magicCopying profile templates - Edit Configuration: Fill in the generated .env and .env_super_magic files with the API keys you have for OpenAI format models, such as ChatGPT or other compatible model keys
- model validation: Ensure that at least one valid language model API is configured, otherwise the platform will not function properly
- service restart: After modifying the configuration, it is recommended to use the
./bin/magic.sh restartcommand to restart the service for the configuration to take effect
Note: Magic currently supports mainly Linux/Unix systems and requires a stable network connection to access external API services.
This answer comes from the articleMagic: Open Source AI Productivity Platform to Help Enterprises Efficiently Build Intelligent ApplicationsThe































