本页还没有译文
本页 8 段还没译成日本語,下面显示的是英文原文。any-llm integrations
还没翻译译自英文(docs.langchain.com)本页 8 段都还没译
any-llm is a unified interface for calling OpenAI, Anthropic, Google, local models (via Ollama/LocalAI), and more. Switch between providers just by changing a string.
Installation and setup
pip install langchain-anyllmuv add langchain-anyllmYou need the appropriate API key for your chosen provider. API keys can be passed via the api_key parameter or set as environment variables (e.g., OPENAI_API_KEY, ANTHROPIC_API_KEY). See the any-llm documentation for provider-specific requirements.
Chat models
from langchain_anyllm import ChatAnyLLMAPI reference
For detailed documentation of all ChatAnyLLM features and configurations, head to the API reference: https://github.com/mozilla-ai/langchain-any-llm
AI 翻译查看英文原文