Class: Legion::Extensions::Mlx::Client
- Inherits:
-
Object
- Object
- Legion::Extensions::Mlx::Client
- Includes:
- Helpers::Client, Runners::Chat, Runners::Completions, Runners::Embeddings, Runners::Models
- Defined in:
- lib/legion/extensions/mlx/client.rb
Constant Summary
Constants included from Helpers::Client
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #client(**override) ⇒ Object
-
#initialize(host: Helpers::Client::DEFAULT_HOST) ⇒ Client
constructor
A new instance of Client.
- #streaming_client(**override) ⇒ Object
Methods included from Runners::Embeddings
Methods included from Runners::Models
Methods included from Runners::Chat
Methods included from Runners::Completions
Constructor Details
#initialize(host: Helpers::Client::DEFAULT_HOST) ⇒ Client
Returns a new instance of Client.
21 22 23 |
# File 'lib/legion/extensions/mlx/client.rb', line 21 def initialize(host: Helpers::Client::DEFAULT_HOST, **) @opts = { host: host }.compact end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
19 20 21 |
# File 'lib/legion/extensions/mlx/client.rb', line 19 def opts @opts end |
Instance Method Details
#client(**override) ⇒ Object
25 26 27 |
# File 'lib/legion/extensions/mlx/client.rb', line 25 def client(**override) super(**@opts, **override) end |
#streaming_client(**override) ⇒ Object
29 30 31 |
# File 'lib/legion/extensions/mlx/client.rb', line 29 def streaming_client(**override) super(**@opts, **override) end |