Class: LlmHub::Completion::Providers::Deepseek

Inherits:
OpenAI
  • Object
show all
Defined in:
lib/llm_hub/completion/providers/deepseek.rb

Overview

DeepSeek completion provider Inherits from OpenAI provider since DeepSeek uses OpenAI-compatible API

Constant Summary collapse

COMPLETIONS_URI =
'https://api.deepseek.com/v1/chat/completions'

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods inherited from OpenAI

#extract_answer, #extract_tokens, #headers, #request_body

Methods inherited from Base

#initialize

Methods included from LlmHub::Common::AbstractMethods

included

Constructor Details

This class inherits a constructor from LlmHub::Completion::Providers::Base

Instance Method Details

#urlObject



11
12
13
# File 'lib/llm_hub/completion/providers/deepseek.rb', line 11

def url
  COMPLETIONS_URI
end