计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
gamma-install-auth【效率与协作】Install and configure Gamma API authentication. Use when setting up a new Gamma integration, configuring API keys, or initializing Gamma in your project. Trigger with phrases like "install gamma", "setup gamma", "gamma auth", "configure gamma API key".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Set up Gamma API and configure authentication credentials for AI-powered presentation generation.
# Node.js
npm install @gamma/sdk
# Python
pip install gamma-sdk
# Set environment variable
export GAMMA_API_KEY="your-api-key"
# Or create .env file
echo 'GAMMA_API_KEY=your-api-key' >> .env
import { GammaClient } from '@gamma/sdk';
const gamma = new GammaClient({ apiKey: process.env.GAMMA_API_KEY });
const status = await gamma.ping();
console.log(status.ok ? 'Connected!' : 'Failed');
| Error | Cause | Solution |
|---|---|---|
| Invalid API Key | Incorrect or expired key | Verify key in Gamma dashboard |
| Rate Limited | Exceeded quota | Check quota at https://gamma.app/docs |
| Network Error | Firewall blocking | Ensure outbound HTTPS allowed |
| Module Not Found | Installation failed | Run npm install or pip install again |
import { GammaClient } from '@gamma/sdk';
const gamma = new GammaClient({
apiKey: process.env.GAMMA_API_KEY,
});
from gamma import GammaClient
client = GammaClient(
api_key=os.environ.get('GAMMA_API_KEY')
)
After successful auth, proceed to gamma-hello-world for your first presentation generation.