安装Spegel需要以下步骤:
- clone warehouse::
git clone https://github.com/simedw/spegel.git
cd spegel - Installation of dependencies::
pip install -e .
将自动安装litellm、Textual等核心组件 - Configuring the API Key::
在项目目录创建.env文件,参照env_example.txt添加:GEMINI_API_KEY=你的实际密钥
- Basic validation::
fulfillmentspegel bbc.com
Test run effect
安装完成后,建议通过~/.spegel.toml
配置文件进行个性化设置,主要配置项包括:default_view(默认视图)、default_model(首选AI模型)以及自定义视图的prompt提示词模板。首次使用建议保留默认配置测试效果,熟悉后再逐步调整。
This answer comes from the articleSpegel: using AI to transform web pages into an end-to-end browsing experienceThe