Module: Legion::Extensions::Llamacpp::Runners::Health
- Extended by:
- Helpers::Client
- Includes:
- Helpers::Lex
- Included in:
- Client
- Defined in:
- lib/legion/extensions/llamacpp/runners/health.rb
Constant Summary
Helpers::Client::DEFAULT_HOST
Instance Method Summary
collapse
client, streaming_client
Instance Method Details
#health ⇒ Object
13
14
15
16
|
# File 'lib/legion/extensions/llamacpp/runners/health.rb', line 13
def health(**)
response = Helpers::Errors.with_retry { client(**).get('/health') }
{ result: response.body, status: response.status }
end
|