Files

1 line
2.7 KiB
JSON

{"text":["Integrations","GitHub Copilot","🐙","Platforms & Editors","Use Hanzo AI with GitHub Copilot","Extend your GitHub Copilot workflow with Hanzo AI for access to additional models and capabilities via the API. Use Hanzo for tasks Copilot can't handle.","Base URL:","https://api.hanzo.ai/v1","Get yours at","Fully OpenAI-compatible","400+ models","available","API Key:","platform.hanzo.ai/api-keys","Created by","GitHub / Microsoft","License:","Proprietary","View source on GitHub →","Hanzo AI is OpenAI-compatible, so existing GitHub Copilot code works with zero refactoring. We deeply appreciate the GitHub / Microsoft team for building and maintaining this open-source project.","Hanzo API alongside Copilot","python","# Use GitHub Copilot in editor, Hanzo API in code","from","openai","import","OpenAI","# Hanzo for programmatic access","client = OpenAI","base_url=","api_key=","your-hanzo-api-key","# Access the models Copilot does not carry","response = client","chat","completions","create","model=","zen4-pro","messages=","[{","role","user","content","Review this code...","}],","GitHub Actions with Hanzo","typescript","// In CI: use Hanzo AI for code review","const","client = new","({","baseURL","apiKey","process.env.HANZO_API_KEY","});","review =","await","client.chat.completions.","model","messages","Review this PR diff:","${","diff","}`","GitHub Actions workflow","yaml","name","AI Code Review","on","pull_request","jobs","review","runs-on","ubuntu-latest","steps","uses","actions/checkout@v4","AI Review","env","HANZO_API_KEY","${{ secrets.HANZO_API_KEY }}","run","pip install openai","python scripts/ai_review.py","API key setup","bash","# Add to GitHub repo secrets","# Settings > Secrets > Actions > New secret","# Name: HANZO_API_KEY","# Value: your-hanzo-api-key","Ready to get started?","Create a free account and get your API key. The Free plan includes free model requests and Kai decisions, no card.","Get API key — Free","Browse Models","More integrations","OpenAI Python SDK","Anthropic SDK","LangChain","LlamaIndex","Vercel AI SDK","Hugging Face","AutoGen","CrewAI","DSPy","Haystack","Cursor","Continue.dev","Docker","Kubernetes","Python","TypeScript","Go","Rust"],"links":["/integrations","https://platform.hanzo.ai/api-keys","https://github.com","https://github.com/features/copilot","/models","/integrations/openai-sdk","/integrations/anthropic-sdk","/integrations/langchain","/integrations/llamaindex","/integrations/vercel-ai-sdk","/integrations/huggingface","/integrations/autogen","/integrations/crewai","/integrations/dspy","/integrations/haystack","/integrations/cursor","/integrations/continue-dev","/integrations/docker","/integrations/kubernetes","/integrations/python","/integrations/typescript","/integrations/go","/integrations/rust"]}