Class: Llmclt::Request::NonStreaming

Inherits:
Base
  • Object
show all
Includes:
Chat
Defined in:
lib/llmclt/request/non_streaming.rb

Instance Method Summary collapse

Methods inherited from Base

#content, #initialize

Constructor Details

This class inherits a constructor from Llmclt::Request::Base

Instance Method Details

#build_response(response) ⇒ Object



14
15
16
# File 'lib/llmclt/request/non_streaming.rb', line 14

def build_response(response)
  Llmclt::Response::NonStreaming.new(response)
end

#endpoint_uriObject



8
9
10
11
12
# File 'lib/llmclt/request/non_streaming.rb', line 8

def endpoint_uri
  URI.parse(
    "https://#{endpoint_host}/v1/projects/#{@config.project_id}/locations/#{@config.location_id}/publishers/google/models/#{@config.model}:generateContent"
  )
end