googleapis/go-genai

Google Gen AI Go SDK provides an interface for developers to integrate Google's generative models into their Go applications.

解決的問題

為 Go 開發者提供標準化介面,使其無需撰寫原始 API 呼叫即可將 Google 的生成式 AI 模型(例如 Gemini)整合至應用程式中。

運作方式

此 SDK 作為客戶端程式庫,連接到 Gemini Developer API 或 Gemini Enterprise Agent Platform。開發者可使用 API 金鑰或專案特定的雲端設定來設定客戶端,然後呼叫 GenerateContent 等方法,將多模態輸入(文字與影像)傳送至模型。

適用對象

希望使用 Google 的生成模型建構 AI 功能的 Go 開發者

主要特色

  • 同時支援 Gemini Developer API 與 Gemini Enterprise Agent Platform。
  • 支援多模態功能,可從文字與影像的組合輸入中產生文字。
  • 可透過程式碼或環境變數進行彈性客戶端設定。

相關

  • 專案
  • 專案
  • 專案
  • 專案
  • 專案