跳到主要内容
OctoAI 提供高效计算的便捷访问,并允许用户将他们选择的 AI 模型集成到应用程序中。OctoAI 计算服务帮助您轻松运行、调整和扩展 AI 应用程序。

安装和设置

  • 安装 openai Python 包
    pip install openai
    
  • OctoAI 上注册,并从您的 OctoAI 账户页面获取 API 令牌。

聊天模型

查看使用示例
from langchain_community.chat_models import ChatOctoAI

LLMs

查看使用示例
from langchain_community.llms.octoai_endpoint import OctoAIEndpoint

嵌入模型

from langchain_community.embeddings.octoai_embeddings import OctoAIEmbeddings

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.