OctoAI
OctoAI offers easy access to efficient compute and enables users to integrate their choice of AI models into applications. The
OctoAIcompute service helps you run, tune, and scale AI applications easily.
安装与设置
- 安装
openaiPython 包:pip install openai - 在
OctoAI上注册并从 您的 OctoAI 帐户页面 获取 API Token。
聊天模型
查看一个 使用示例。
from langchain_community.chat_models import ChatOctoAI
API 参考:ChatOctoAI
LLMs
查看一个 使用示例。
from langchain_community.llms.octoai_endpoint import OctoAIEndpoint
API 参考:OctoAIEndpoint
嵌入模型
from langchain_community.embeddings.octoai_embeddings import OctoAIEmbeddings
API 参考:OctoAIEmbeddings