Class: LLM::DeepSeek
- Inherits:
-
OpenAI
show all
- Includes:
- DeepSeek::RequestAdapter
- Defined in:
- lib/llm/providers/deepseek.rb,
lib/llm/providers/deepseek/images.rb,
lib/llm/providers/deepseek/request_adapter.rb,
lib/llm/providers/deepseek/response_adapter.rb
Overview
The DeepSeek class implements a provider for
DeepSeek
through its OpenAI-compatible API available via
their web platform.
Defined Under Namespace
Modules: RequestAdapter, ResponseAdapter
Classes: Images
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
#adapt
Methods inherited from Provider
#assistant_role, #chat, #complete, #developer_role, #embed, #inspect, #interrupt!, #key?, #models, #request_owner, #respond, #schema, #server_tool, #server_tools, #streamable?, #system_role, #tool_role, #tracer, #tracer=, #user_role, #web_search, #with, #with_tracer
Constructor Details
#initialize(host: "api.deepseek.com", port: 443, ssl: true) ⇒ LLM::DeepSeek
29
30
31
|
# File 'lib/llm/providers/deepseek.rb', line 29
def initialize(host: "api.deepseek.com", port: 443, ssl: true, **)
super
end
|
Instance Method Details
54
55
56
|
# File 'lib/llm/providers/deepseek.rb', line 54
def audio
raise NotImplementedError
end
|
#default_model ⇒ String
Returns the default model for chat completions
80
81
82
|
# File 'lib/llm/providers/deepseek.rb', line 80
def default_model
"deepseek-v4-flash"
end
|
42
43
44
|
# File 'lib/llm/providers/deepseek.rb', line 42
def files
raise NotImplementedError
end
|
48
49
50
|
# File 'lib/llm/providers/deepseek.rb', line 48
def images
LLM::DeepSeek::Images.new(self)
end
|
#moderations ⇒ Object
60
61
62
|
# File 'lib/llm/providers/deepseek.rb', line 60
def moderations
raise NotImplementedError
end
|
#name ⇒ Symbol
Returns the provider's name
36
37
38
|
# File 'lib/llm/providers/deepseek.rb', line 36
def name
:deepseek
end
|
#responses ⇒ Object
66
67
68
|
# File 'lib/llm/providers/deepseek.rb', line 66
def responses
raise NotImplementedError
end
|
#vector_stores ⇒ Object
72
73
74
|
# File 'lib/llm/providers/deepseek.rb', line 72
def vector_stores
raise NotImplementedError
end
|