org.llm4s.imageprocessing.provider.geminiclient

Members list

Type members

Classlikes

Google Gemini Vision client for AI-powered image analysis.

Google Gemini Vision client for AI-powered image analysis.

Sends multimodal requests (image + text prompt) to the Gemini generateContent REST endpoint and returns structured analysis results.

The API key is sent in the x-goog-api-key request header, never in the URL, so it cannot reach a log line or an error message through the URL.

Failures are returned, not thrown: an HTTP error status is an org.llm4s.error.APIError carrying the status code; a timeout, connection failure or interruption is the typed org.llm4s.error.TimeoutError, org.llm4s.error.NetworkError or org.llm4s.error.CancelledError; a reply that carries no text (a blocked prompt, a candidate stopped for safety or recitation, a body that is not Gemini JSON) is an org.llm4s.error.APIError too, never a made-up description.

Value parameters

config

GeminiVisionConfig containing the API key, model, and base URL.

httpClient

the HTTP transport; defaults to the JDK client honouring config.connectTimeoutSeconds.

Attributes

Supertypes
class Object
trait Matchable
class Any