mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:21:13 +00:00
157 lines
3.6 KiB
JSON
157 lines
3.6 KiB
JSON
[
|
|
[
|
|
{
|
|
"a": "Integrations",
|
|
"href": "/integrations"
|
|
},
|
|
{
|
|
"h1": "Use Hanzo AI with GitHub Copilot"
|
|
},
|
|
{
|
|
"p": "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."
|
|
},
|
|
{
|
|
"p": "Base URL: https://api.hanzo.ai/v1"
|
|
},
|
|
{
|
|
"code": "https://api.hanzo.ai/v1"
|
|
},
|
|
{
|
|
"p": "API Key: Get yours at platform.hanzo.ai/api-keys · Fully OpenAI-compatible · every model on the gateway available"
|
|
},
|
|
{
|
|
"a": "platform.hanzo.ai/api-keys",
|
|
"href": "https://platform.hanzo.ai/api-keys"
|
|
},
|
|
{
|
|
"p": "Created by GitHub / Microsoft"
|
|
},
|
|
{
|
|
"a": "GitHub / Microsoft",
|
|
"href": "https://github.com"
|
|
},
|
|
{
|
|
"p": "License: Proprietary · View source on GitHub →"
|
|
},
|
|
{
|
|
"a": "View source on GitHub →",
|
|
"href": "https://github.com/features/copilot"
|
|
},
|
|
{
|
|
"p": "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."
|
|
},
|
|
{
|
|
"h2": "Hanzo API alongside Copilot"
|
|
},
|
|
{
|
|
"code": "# Use GitHub Copilot in editor, Hanzo API in code from openai import OpenAI # Hanzo for programmatic access client = OpenAI ( base_url= \" https://api.hanzo.ai/v1 \" , 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... \" }], )"
|
|
},
|
|
{
|
|
"h2": "GitHub Actions with Hanzo"
|
|
},
|
|
{
|
|
"code": "// In CI: use Hanzo AI for code review import OpenAI from \" openai \" ; const client = new OpenAI ({ baseURL : \" https://api.hanzo.ai/v1 \" , apiKey : process.env.HANZO_API_KEY , }); const review = await client.chat.completions. create ({ model : \" zen4-pro \" , messages : [{ role : \" user \" , content : ` Review this PR diff: ${ diff }` , }], });"
|
|
},
|
|
{
|
|
"h2": "GitHub Actions workflow"
|
|
},
|
|
{
|
|
"code": "name : AI Code Review on : [ pull_request ] jobs : review : runs-on : ubuntu-latest steps : - uses : actions/checkout@v4 - name : AI Review env : HANZO_API_KEY : ${{ secrets.HANZO_API_KEY }} run : | pip install openai python scripts/ai_review.py"
|
|
},
|
|
{
|
|
"h2": "API key setup"
|
|
},
|
|
{
|
|
"code": "# Add to GitHub repo secrets # Settings > Secrets > Actions > New secret # Name: HANZO_API_KEY # Value: your-hanzo-api-key"
|
|
},
|
|
{
|
|
"h2": "Ready to get started?"
|
|
},
|
|
{
|
|
"p": "Create a free account and get your API key. The Free plan includes free model requests and Kai decisions, no card."
|
|
},
|
|
{
|
|
"a": "Get API key — Free",
|
|
"href": "https://platform.hanzo.ai/api-keys"
|
|
},
|
|
{
|
|
"a": "Browse Models",
|
|
"href": "/models"
|
|
},
|
|
{
|
|
"h2": "More integrations"
|
|
},
|
|
{
|
|
"a": "OpenAI Python SDK",
|
|
"href": "/integrations/openai-sdk"
|
|
},
|
|
{
|
|
"a": "Anthropic SDK",
|
|
"href": "/integrations/anthropic-sdk"
|
|
},
|
|
{
|
|
"a": "LangChain",
|
|
"href": "/integrations/langchain"
|
|
},
|
|
{
|
|
"a": "LlamaIndex",
|
|
"href": "/integrations/llamaindex"
|
|
},
|
|
{
|
|
"a": "Vercel AI SDK",
|
|
"href": "/integrations/vercel-ai-sdk"
|
|
},
|
|
{
|
|
"a": "Hugging Face",
|
|
"href": "/integrations/huggingface"
|
|
},
|
|
{
|
|
"a": "AutoGen",
|
|
"href": "/integrations/autogen"
|
|
},
|
|
{
|
|
"a": "CrewAI",
|
|
"href": "/integrations/crewai"
|
|
},
|
|
{
|
|
"a": "DSPy",
|
|
"href": "/integrations/dspy"
|
|
},
|
|
{
|
|
"a": "Haystack",
|
|
"href": "/integrations/haystack"
|
|
},
|
|
{
|
|
"a": "Cursor",
|
|
"href": "/integrations/cursor"
|
|
},
|
|
{
|
|
"a": "Continue.dev",
|
|
"href": "/integrations/continue-dev"
|
|
},
|
|
{
|
|
"a": "Docker",
|
|
"href": "/integrations/docker"
|
|
},
|
|
{
|
|
"a": "Kubernetes",
|
|
"href": "/integrations/kubernetes"
|
|
},
|
|
{
|
|
"a": "Python",
|
|
"href": "/integrations/python"
|
|
},
|
|
{
|
|
"a": "TypeScript",
|
|
"href": "/integrations/typescript"
|
|
},
|
|
{
|
|
"a": "Go",
|
|
"href": "/integrations/go"
|
|
},
|
|
{
|
|
"a": "Rust",
|
|
"href": "/integrations/rust"
|
|
}
|
|
]
|
|
] |