llm_hub 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e158630f5cb8b2c10a9727709df6f7f657455e4ff41ffa172c4d0d11107be3b
4
- data.tar.gz: d3032679c1d2299a2d6a36544eee64b43ee94a7b0f3b584fc1c469320de0d7ee
3
+ metadata.gz: c791bf83c85b80125da4cf8a71eab51d804f21f0f29d128f27710c6bd0e9c621
4
+ data.tar.gz: 244a67dd97fd68b97a345971a7e806520c83f6906f9d50362ad2dc8b29086253
5
5
  SHA512:
6
- metadata.gz: 893d3e70031f8bcb191047f6024911d580540352a60354ce2047a20bb3e4bd160715c04aaf685e369fc8ec8b19ca5446a2894fde27f22a79d50c78a3897d9365
7
- data.tar.gz: 0f5b42a047a08af58a8db307ece86723684dcf6ad97a6a50b296f4ae540effb0d85559ab72e4273fa4183517e8d577cc6b56490eb0aebf8f20e7927a920c88ef
6
+ metadata.gz: a64411fb25ba585dffc8251414231871ff173d89a16e06c4c0b0d6c8bf00fcb859bcf5f7ff0bec7c653ca5249fa48b1d70e03ee507dbc82851d1f4b8c02a3e5c
7
+ data.tar.gz: 89e38e3d90d585b56809a5fb7e18f4e7257fa4f8675e7172a622ef56f222175b2d68b1b60f73a8f6e50a391b121e8e7523f014fe0af79c98e4f57881d7c35eef
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # LlmHub
2
2
 
3
- This is a Ruby interface for multiple LLM providers, such as OpenAI and Anthropic.
3
+ This is a Ruby interface for multiple LLM providers, such as OpenAI, Anthropic, and DeepSeek.
4
4
 
5
5
  It provides easy access to Completion and Embedding functionalities.
6
6
 
@@ -8,12 +8,13 @@ module LlmHub
8
8
  # @return [Hash<Symbol, Class>] mapping of provider names to their classes
9
9
  PROVIDER_CLASSES = {
10
10
  openai: Providers::OpenAI,
11
- anthropic: Providers::Anthropic
11
+ anthropic: Providers::Anthropic,
12
+ deepseek: Providers::Deepseek
12
13
  }.freeze
13
14
 
14
15
  # Initialize a new completion client
15
16
  # @param api_key [String] API key for the provider (required)
16
- # @param provider [Symbol, String] Provider name (:openai, :anthropic) (required)
17
+ # @param provider [Symbol, String] Provider name (:openai, :anthropic, :deepseek) (required)
17
18
  # @see LlmHub::Common::ClientBase#initialize
18
19
  def initialize(api_key:, provider:)
19
20
  super
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LlmHub
4
+ module Completion
5
+ module Providers
6
+ # DeepSeek completion provider
7
+ # Inherits from OpenAI provider since DeepSeek uses OpenAI-compatible API
8
+ class Deepseek < OpenAI
9
+ COMPLETIONS_URI = 'https://api.deepseek.com/v1/chat/completions'
10
+
11
+ def url
12
+ COMPLETIONS_URI
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LlmHub
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
data/lib/llm_hub.rb CHANGED
@@ -18,6 +18,7 @@ require_relative 'llm_hub/common/client_base'
18
18
  require_relative 'llm_hub/completion/providers/base'
19
19
  require_relative 'llm_hub/completion/providers/openai'
20
20
  require_relative 'llm_hub/completion/providers/anthropic'
21
+ require_relative 'llm_hub/completion/providers/deepseek'
21
22
  require_relative 'llm_hub/completion/client'
22
23
 
23
24
  # Embedding providers
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llm_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - akiraNuma
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-29 00:00:00.000000000 Z
10
+ date: 2025-06-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -59,6 +59,7 @@ files:
59
59
  - lib/llm_hub/completion/client.rb
60
60
  - lib/llm_hub/completion/providers/anthropic.rb
61
61
  - lib/llm_hub/completion/providers/base.rb
62
+ - lib/llm_hub/completion/providers/deepseek.rb
62
63
  - lib/llm_hub/completion/providers/openai.rb
63
64
  - lib/llm_hub/config.rb
64
65
  - lib/llm_hub/embedding/client.rb