跳到主要內容

Dappier AI

Dappier:透過動態即時資料模型驅動 AI

Dappier 提供一個尖端平台,讓開發人員可以立即存取廣泛的即時資料模型,涵蓋新聞、娛樂、金融、市場資料、天氣等領域。透過我們預先訓練的資料模型,您可以為您的 AI 應用程式增強動力,確保它們提供精確、最新的回應,並最大限度地減少不準確性。

Dappier 資料模型可協助您使用來自世界領先品牌的受信任、最新內容來建構下一代 LLM 應用程式。透過簡單的 API,釋放您的創造力,並使用可操作的專有資料來增強任何 GPT 應用程式或 AI 工作流程。使用來自受信任來源的專有資料來擴增您的 AI,是確保無論問題為何,都能獲得事實準確、最新回應並減少幻覺的最佳方法。

為開發人員而設計,由開發人員打造。Dappier 簡化了從資料整合到貨幣化的過程,為部署 AI 模型並從中獲利提供清晰、直接的路徑。在 https://dappier.com/ 體驗新網際網路的未來貨幣化基礎架構。

此範例說明如何使用 LangChain 與 Dappier AI 模型互動


若要使用我們的 Dappier AI 資料模型之一,您需要 API 金鑰。請造訪 Dappier 平台 (https://platform.dappier.com/) 登入並在您的個人資料中建立 API 金鑰。

您可以在 API 參考中找到更多詳細資訊:https://docs.dappier.com/introduction

若要使用我們的 Dappier 聊天模型,您可以直接透過名為 dappier_api_key 的參數傳遞金鑰,或設定為環境變數。

export DAPPIER_API_KEY="..."
from langchain_community.chat_models.dappier import ChatDappierAI
from langchain_core.messages import HumanMessage
chat = ChatDappierAI(
dappier_endpoint="https://api.dappier.com/app/datamodelconversation",
dappier_model="dm_01hpsxyfm2fwdt2zet9cg6fdxt",
dappier_api_key="...",
)
messages = [HumanMessage(content="Who won the super bowl in 2024?")]
chat.invoke(messages)
AIMessage(content='Hey there! The Kansas City Chiefs won Super Bowl LVIII in 2024. They beat the San Francisco 49ers in overtime with a final score of 25-22. It was quite the game! 🏈')
await chat.ainvoke(messages)
AIMessage(content='The Kansas City Chiefs won Super Bowl LVIII in 2024! 🏈')

此頁面是否對您有幫助?