Files

1 line
2.5 KiB
JSON

{"text":["Integrations","LangChain","⛓️","Frameworks","Use Hanzo AI with LangChain","Integrate LangChain with Hanzo AI to build chains, agents, and RAG pipelines using any model on Hanzo's gateway. Hanzo is OpenAI-compatible so ChatOpenAI just works.","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","LangChain AI","License:","MIT","View source on GitHub →","Hanzo AI is OpenAI-compatible, so existing LangChain code works with zero refactoring. We deeply appreciate the LangChain AI team for building and maintaining this open-source project.","LangChain Python","python","pip install langchain langchain-openai","from","langchain_openai","import","ChatOpenAI","llm = ChatOpenAI","model=","zen4-pro","openai_api_key=","your-hanzo-api-key","openai_api_base=","response = llm","invoke","What is the capital of France?","print","response","content","Chain with prompt","langchain_core","prompts","ChatPromptTemplate","prompt = ChatPromptTemplate","from_template","Summarize:","{text}","openai/gpt-4.1-mini","chain = prompt | llm","result = chain","({","text","LangChain is a framework...","})","LangChain TypeScript","typescript","@langchain/openai","const","model = new","modelName","openAIApiKey","process.env.HANZO_API_KEY","configuration","baseURL","},","});","response =","await","model.","Hello!",");","RAG with Hanzo","OpenAIEmbeddings","embeddings = OpenAIEmbeddings","openai/text-embedding-3-large","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","LlamaIndex","Vercel AI SDK","Hugging Face","AutoGen","CrewAI","DSPy","Haystack","Cursor","Continue.dev","GitHub Copilot","Docker","Kubernetes","Python","TypeScript","Go","Rust"],"links":["/integrations","https://platform.hanzo.ai/api-keys","https://langchain.com","https://github.com/langchain-ai/langchain","/models","/integrations/openai-sdk","/integrations/anthropic-sdk","/integrations/llamaindex","/integrations/vercel-ai-sdk","/integrations/huggingface","/integrations/autogen","/integrations/crewai","/integrations/dspy","/integrations/haystack","/integrations/cursor","/integrations/continue-dev","/integrations/github-copilot","/integrations/docker","/integrations/kubernetes","/integrations/python","/integrations/typescript","/integrations/go","/integrations/rust"]}