Class: CSTM2::CareerLM

Inherits:
Object
  • Object
show all
Defined in:
lib/cstm2.rb

Overview

careerlm model family (cstm_lm_* keys)

Instance Method Summary collapse

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)