Class: CSTM2::CareerLM
- Inherits:
-
Object
- Object
- CSTM2::CareerLM
- Defined in:
- lib/cstm2.rb
Overview
careerlm model family (cstm_lm_* keys)
Instance Method Summary collapse
- #chat(**body) ⇒ Object
- #chat_stream(body = {}, &on_event) ⇒ Object
- #generate(**body) ⇒ Object
-
#initialize(client) ⇒ CareerLM
constructor
A new instance of CareerLM.
Constructor Details
#initialize(client) ⇒ CareerLM
Returns a new instance of CareerLM.
144 |
# File 'lib/cstm2.rb', line 144 def initialize(client) = @c = client |
Instance Method Details
#chat(**body) ⇒ Object
146 |
# File 'lib/cstm2.rb', line 146 def chat(**body) = @c.post('/v1/careerlm/chat', body) |
#chat_stream(body = {}, &on_event) ⇒ Object
148 |
# File 'lib/cstm2.rb', line 148 def chat_stream(body = {}, &on_event) = @c.stream('/v1/careerlm/chat/stream', body, &on_event) |
#generate(**body) ⇒ Object
147 |
# File 'lib/cstm2.rb', line 147 def generate(**body) = @c.post('/v1/careerlm/generate', body) |