OctoAI
OctoAI 提供輕鬆存取高效運算資源的方式,並讓使用者能將他們選擇的 AI 模型整合到應用程式中。
OctoAI
運算服務可協助您輕鬆執行、調整和擴展 AI 應用程式。
安裝與設定
- 安裝
openai
Python 套件pip install openai
- 在
OctoAI
上註冊,並從您的 OctoAI 帳戶頁面取得 API 權杖。
聊天模型
請參閱使用範例。
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