mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 01:07:08 +00:00
1 line
2.4 KiB
JSON
1 line
2.4 KiB
JSON
{"text":["Integrations","DSPy","🔬","Frameworks","Use Hanzo AI with DSPy","Use DSPy to program (not prompt) Hanzo AI models. DSPy's systematic approach to LM prompting works with any OpenAI-compatible provider.","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","Stanford NLP / Omar Khattab","License:","MIT","View source on GitHub →","Hanzo AI is OpenAI-compatible, so existing DSPy code works with zero refactoring. We deeply appreciate the Stanford NLP / Omar Khattab team for building and maintaining this open-source project.","DSPy + Hanzo setup","python","pip install dspy","import","dspy","lm = dspy","LM","model=","openai/zen4-pro","api_key=","your-hanzo-api-key","api_base=","configure","lm=lm","Signature and module","class","QA","Signature","):","\"\"\"","Answer questions with short factual answers.","question","str = dspy","InputField","()","answer","OutputField","desc=","often 1-3 sentences","qa = dspy","Predict","response = qa","question=","What is the Hanzo AI cloud?","print","response","Chain of thought","CoTQA","Answer with step-by-step reasoning.","reasoning","think step by step","cot = dspy","ChainOfThought","result = cot","Why is AI important for developers?","Optimization with MIPROv2","from","teleprompt","MIPROv2","teleprompter = MIPROv2","metric=my_metric","auto=","medium","optimized = teleprompter","compile","program","trainset=train_data","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","Haystack","Cursor","Continue.dev","GitHub Copilot","Docker","Kubernetes","Python","TypeScript","Go","Rust"],"links":["/integrations","https://platform.hanzo.ai/api-keys","https://dspy.ai","https://github.com/stanfordnlp/dspy","/models","/integrations/openai-sdk","/integrations/anthropic-sdk","/integrations/langchain","/integrations/llamaindex","/integrations/vercel-ai-sdk","/integrations/huggingface","/integrations/autogen","/integrations/crewai","/integrations/haystack","/integrations/cursor","/integrations/continue-dev","/integrations/github-copilot","/integrations/docker","/integrations/kubernetes","/integrations/python","/integrations/typescript","/integrations/go","/integrations/rust"]} |