Class: RubyCode::Adapters::Deepseek

Inherits:
Base
  • Object
show all
Defined in:
lib/rubycode/adapters/deepseek.rb

Overview

DeepSeek adapter for cloud LLM integration (OpenAI-compatible API) DeepSeek provides powerful reasoning models with competitive pricing

Constant Summary collapse

API_ENDPOINT =
"https://api.deepseek.com/v1/chat/completions"

Instance Attribute Summary

Attributes inherited from Base

#current_request_tokens, #last_request_time, #total_tokens_counter

Instance Method Summary collapse

Methods inherited from Base

#generate

Constructor Details

#initialize(config) ⇒ Deepseek

Returns a new instance of Deepseek.



13
14
15
16
# File 'lib/rubycode/adapters/deepseek.rb', line 13

def initialize(config)
  super
  validate_api_key!
end