Class: LLM::ZAI
Overview
The ZAI class implements a provider for zAI.
Constant Summary
Constants inherited from OpenAI
OpenAI::HOST
Instance Method Summary collapse
Methods inherited from OpenAI
#assistant_role,
#complete, #embed, #models, #server_tools,
#web_search
Methods inherited from Provider
#assistant_role,
#chat, clients, #complete, #developer_role,
#embed, #inspect, #models, #respond, #schema, #server_tool,
#server_tools,
#system_role,
#tracer, #tracer=, #user_role, #web_search, #with
Constructor Details
#initialize(host: "api.z.ai") ⇒ ZAI
Returns a new instance of ZAI.
20
21
22
|
# File 'lib/llm/providers/zai.rb', line 20
def initialize(host: "api.z.ai", **)
super
end
|
Instance Method Details
#default_model ⇒ String
Returns the default model for chat completions
64
65
66
|
# File 'lib/llm/providers/zai.rb', line 64
def default_model
"glm-4.5-flash"
end
|
26
27
28
|
# File 'lib/llm/providers/zai.rb', line 26
def files
raise NotImplementedError
end
|
32
33
34
|
# File 'lib/llm/providers/zai.rb', line 32
def images
raise NotImplementedError
end
|
38
39
40
|
# File 'lib/llm/providers/zai.rb', line 38
def audio
raise NotImplementedError
end
|
#moderations ⇒ Object
44
45
46
|
# File 'lib/llm/providers/zai.rb', line 44
def moderations
raise NotImplementedError
end
|
#responses ⇒ Object
50
51
52
|
# File 'lib/llm/providers/zai.rb', line 50
def responses
raise NotImplementedError
end
|
#vector_stores ⇒ Object
56
57
58
|
# File 'lib/llm/providers/zai.rb', line 56
def vector_stores
raise NotImplementedError
end
|