Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/johnyojohn/google-cloud-go/vertexai

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/johnyojohn/google-cloud-go/vertexai

  • v0.0.0-20241028224253-82bd13e26c5c
  • Source
  • Go
  • Socket score

Version published
Created
Source

Vertex AI Go SDK

Go Reference

The Vertex AI Go SDK enables developers to use Google's state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications. This SDK supports use cases like:

  • Generate text from text-only input
  • Generate text from text-and-images input (multimodal)
  • Build multi-turn conversations (chat)

For example, with just a few lines of code, you can access Gemini's multimodal capabilities to generate text from text-and-image input.

model := client.GenerativeModel("gemini-pro-vision")
img := genai.ImageData("jpeg", image_bytes)
prompt := genai.Text("Please give me a recipe for this:")
resp, err := model.GenerateContent(ctx, img, prompt)

Installation and usage

Add the SDK to your module with go get cloud.google.com/go/vertexai/genai.

For detailed instructions, you can find a quickstart for the Vertex AI Go SDK in the Google Cloud documentation.

Documentation

You can find complete documentation for the Vertex AI SDKs and the Gemini model in the Google Cloud documentation: https://cloud.google.com/vertex-ai/docs/generative-ai/learn/overview

For a list of the supported models and their capabilities, see https://cloud.google.com/vertex-ai/docs/generative-ai/learn/model-versioning

You can also find information about this SDK in the Go package documentation.

Check out some usage samples:

Contributing

See Contributing for more information on contributing to the Vertex AI Go SDK.

License

The contents of this repository are licensed under the Apache License, version 2.0.

FAQs

Package last updated on 28 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc