Class: Llmclt::Request::Streaming
- Inherits:
-
Base
- Object
- Base
- Llmclt::Request::Streaming
show all
- Includes:
- Chat
- Defined in:
- lib/llmclt/request/streaming.rb
Instance Method Summary
collapse
Methods inherited from Base
#content, #initialize
Instance Method Details
#build_response(response) ⇒ Object
14
15
16
|
# File 'lib/llmclt/request/streaming.rb', line 14
def build_response(response)
Llmclt::Response::Streaming.new(response)
end
|
#endpoint_uri ⇒ Object
8
9
10
11
12
|
# File 'lib/llmclt/request/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}:streamGenerateContent"
)
end
|