Class: LLM::Moonshot
Overview
The Moonshot class implements a provider for
Moonshot AI through its
OpenAI-compatible Kimi API.
Constant Summary
collapse
- HOST =
"api.moonshot.ai"
- BASE_PATH =
"/v1"
Instance Method Summary
collapse
Methods inherited from OpenAI
#adapt_function, #assistant_role, #complete, #embed, #files, #models, #server_tools, #web_search
#adapt
Methods inherited from Provider
#adapt_function, #assistant_role, #build_messages, #chat, #complete, #developer_role, #embed, #files, #inspect, #interrupt!, #key?, #models, #ocr, #request_owner, #respond, #schema, #server_tool, #server_tools, #system_role, #tool_role, #tracer, #tracer=, #user_role, #web_search, #with, #with_tracer
Constructor Details
#initialize(host: HOST, base_path: BASE_PATH) ⇒ LLM::Moonshot
27
28
29
|
# File 'lib/llm/providers/moonshot.rb', line 27
def initialize(host: HOST, base_path: BASE_PATH, **)
super
end
|
Instance Method Details
46
47
48
|
# File 'lib/llm/providers/moonshot.rb', line 46
def audio
raise NotImplementedError
end
|
#default_model ⇒ String
Returns the default model for chat completions
72
73
74
|
# File 'lib/llm/providers/moonshot.rb', line 72
def default_model
"kimi-k3"
end
|
40
41
42
|
# File 'lib/llm/providers/moonshot.rb', line 40
def images
raise NotImplementedError
end
|
#moderations ⇒ Object
52
53
54
|
# File 'lib/llm/providers/moonshot.rb', line 52
def moderations
raise NotImplementedError
end
|
#name ⇒ Symbol
Returns the provider's name
34
35
36
|
# File 'lib/llm/providers/moonshot.rb', line 34
def name
:moonshot
end
|
#responses ⇒ Object
58
59
60
|
# File 'lib/llm/providers/moonshot.rb', line 58
def responses
raise NotImplementedError
end
|
#vector_stores ⇒ Object
64
65
66
|
# File 'lib/llm/providers/moonshot.rb', line 64
def vector_stores
raise NotImplementedError
end
|