deepseek-client 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b9976ec8055efd738544ae48c6438b68dc9c20583f32326f4c5cd2b61c4d7695
4
+ data.tar.gz: 537b4efc2bc483e392ecf1986006f85127563b5b0edc3b0a5d63fc22d0d0da32
5
+ SHA512:
6
+ metadata.gz: 362e71a7534389666aed2396361142503012e3794d2eda94075e1944f65be71e2dea42445166288d8aee836bbf8b170754636258332c9ba07b7fd7915c12f81f
7
+ data.tar.gz: 931e5d2bbf3ec9d4482896bee830b1da074866b9081f7c612fdc6307ce4680e1a5ed0e52ea09895149451311abb172d7fae11a6f5c1ce6d447e0253bd0533d61
data/CHANGELOG.md ADDED
File without changes
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Nagendra Dhanakeerthi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,235 @@
1
+ # Deepseek Ruby SDK
2
+
3
+ <a href="https://badge.fury.io/rb/deepseek"><img src="https://img.shields.io/gem/v/deepseek?style=for-the-badge" alt="Gem Version"></a>
4
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge" alt="License"></a>
5
+ <a href="https://codeclimate.com/github/nagstler/deepseek-ruby/maintainability"><img src="https://img.shields.io/codeclimate/maintainability/nagstler/deepseek-ruby?style=for-the-badge" alt="Maintainability"></a>
6
+ <a href="https://codeclimate.com/github/nagstler/deepseek-ruby/test_coverage"><img src="https://img.shields.io/codeclimate/coverage/nagstler/deepseek-ruby?style=for-the-badge" alt="Test Coverage"></a>
7
+ <a href="https://github.com/nagstler/deepseek-ruby/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/nagstler/deepseek-ruby/ci.yml?branch=main&style=for-the-badge" alt="CI"></a>
8
+ <a href="https://github.com/nagstler/deepseek-ruby/stargazers"><img src="https://img.shields.io/github/stars/nagstler/deepseek-ruby?style=for-the-badge" alt="GitHub stars"></a>
9
+
10
+ A Ruby SDK for interacting with the Deepseek AI API. This SDK provides a simple and intuitive interface for making API calls, handling responses, and managing errors.
11
+
12
+ ## Features
13
+
14
+ - 🚀 Simple and intuitive interface
15
+ - ⚡️ Automatic retries with exponential backoff
16
+ - 🛡️ Comprehensive error handling
17
+ - ⚙️ Flexible configuration options
18
+ - 🔒 Secure API key management
19
+ - 📝 Detailed response handling
20
+
21
+ ## Table of Contents
22
+
23
+ - [Installation](#installation)
24
+ - [Quick Start](#quick-start)
25
+ - [Configuration](#configuration)
26
+ - [API Reference](#api-reference)
27
+ - [Usage Examples](#usage-examples)
28
+ - [Error Handling](#error-handling)
29
+ - [Retry Handling](#retry-handling)
30
+ - [Development](#development)
31
+ - [Contributing](#contributing)
32
+ - [Support](#support)
33
+ - [License](#license)
34
+
35
+ ## Installation
36
+
37
+ Add this line to your application's Gemfile:
38
+
39
+ ```ruby
40
+ gem 'deepseek'
41
+ ```
42
+
43
+ And then execute:
44
+
45
+ ```bash
46
+ $ bundle install
47
+ ```
48
+
49
+ Or install it yourself as:
50
+
51
+ ```bash
52
+ $ gem install deepseek
53
+ ```
54
+
55
+ ## Quick Start
56
+
57
+ ```ruby
58
+ require 'deepseek'
59
+
60
+ # Initialize client
61
+ client = Deepseek::Client.new(api_key: 'your-api-key')
62
+
63
+ # Make a chat completion request
64
+ response = client.chat(
65
+ messages: [
66
+ { role: 'user', content: 'What is artificial intelligence?' }
67
+ ],
68
+ model: 'deepseek-chat'
69
+ )
70
+
71
+ puts response['choices'][0]['message']['content']
72
+ ```
73
+
74
+ ## Configuration
75
+
76
+ ### Basic Configuration
77
+
78
+ ```ruby
79
+ client = Deepseek::Client.new(
80
+ api_key: 'your-api-key',
81
+ timeout: 60, # Custom timeout in seconds
82
+ max_retries: 3 # Number of retries for failed requests
83
+ )
84
+ ```
85
+
86
+ ### Environment Variables
87
+
88
+ The SDK supports configuration through environment variables:
89
+
90
+ ```bash
91
+ DEEPSEEK_API_KEY=your-api-key
92
+ DEEPSEEK_API_BASE_URL=https://api.deepseek.com # Optional
93
+ DEEPSEEK_TIMEOUT=30 # Optional
94
+ DEEPSEEK_MAX_RETRIES=3 # Optional
95
+ ```
96
+
97
+ ## API Reference
98
+
99
+ ### Available Methods
100
+
101
+ #### chat(messages:, model: 'deepseek-chat', **params)
102
+
103
+ Make a chat completion request.
104
+
105
+ Parameters:
106
+ - `messages` (Array, required): Array of message objects
107
+ - `model` (String, optional): Model to use, defaults to 'deepseek-chat'
108
+ - `temperature` (Float, optional): Sampling temperature
109
+
110
+ Response Format:
111
+ ```ruby
112
+ {
113
+ "choices" => [{
114
+ "message" => {
115
+ "content" => "Hello! How can I help you today?",
116
+ "role" => "assistant"
117
+ },
118
+ "finish_reason" => "stop"
119
+ }],
120
+ "created" => 1677649420,
121
+ "id" => "chatcmpl-123",
122
+ "model" => "deepseek-chat",
123
+ "usage" => {
124
+ "completion_tokens" => 17,
125
+ "prompt_tokens" => 57,
126
+ "total_tokens" => 74
127
+ }
128
+ }
129
+ ```
130
+
131
+ ## Usage Examples
132
+
133
+ ### Chat with System Message
134
+ ```ruby
135
+ response = client.chat(
136
+ messages: [
137
+ { role: 'system', content: 'You are a friendly AI assistant.' },
138
+ { role: 'user', content: 'Hello!' }
139
+ ],
140
+ temperature: 0.7,
141
+ model: 'deepseek-chat'
142
+ )
143
+ ```
144
+
145
+ ### Conversation with History
146
+ ```ruby
147
+ conversation = [
148
+ { role: 'user', content: 'What is your favorite color?' },
149
+ { role: 'assistant', content: 'I don\'t have personal preferences, but I can discuss colors!' },
150
+ { role: 'user', content: 'Tell me about blue.' }
151
+ ]
152
+
153
+ response = client.chat(
154
+ messages: conversation,
155
+ temperature: 0.8
156
+ )
157
+ ```
158
+
159
+ ### Advanced Configuration Example
160
+ ```ruby
161
+ client = Deepseek::Client.new(
162
+ api_key: ENV['DEEPSEEK_API_KEY'],
163
+ timeout: 60, # Custom timeout
164
+ max_retries: 5, # Custom retry limit
165
+ api_base_url: 'https://custom.deepseek.api.com' # Custom API URL
166
+ )
167
+ ```
168
+
169
+ ## Error Handling
170
+
171
+ The SDK provides comprehensive error handling for various scenarios:
172
+
173
+ ```ruby
174
+ begin
175
+ response = client.chat(messages: messages)
176
+ rescue Deepseek::AuthenticationError => e
177
+ # Handle authentication errors (e.g., invalid API key)
178
+ puts "Authentication error: #{e.message}"
179
+ rescue Deepseek::RateLimitError => e
180
+ # Handle rate limit errors
181
+ puts "Rate limit exceeded: #{e.message}"
182
+ rescue Deepseek::InvalidRequestError => e
183
+ # Handle invalid request errors
184
+ puts "Invalid request: #{e.message}"
185
+ rescue Deepseek::ServiceUnavailableError => e
186
+ # Handle API service errors
187
+ puts "Service error: #{e.message}"
188
+ rescue Deepseek::APIError => e
189
+ # Handle other API errors
190
+ puts "API error: #{e.message}"
191
+ end
192
+ ```
193
+
194
+ ## Retry Handling
195
+
196
+ The SDK automatically handles retries with exponential backoff for failed requests:
197
+
198
+ - Automatic retry on network failures
199
+ - Exponential backoff strategy
200
+ - Configurable max retry attempts
201
+ - Retry on rate limits and server errors
202
+
203
+ ## Development
204
+
205
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
206
+
207
+ ### Running Tests
208
+
209
+ ```bash
210
+ bundle exec rake spec
211
+ ```
212
+
213
+ ### Running the Console
214
+
215
+ ```bash
216
+ bin/console
217
+ ```
218
+
219
+ ## Contributing
220
+
221
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nagstler/deepseek-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](CODE_OF_CONDUCT.md).
222
+
223
+ For detailed contribution guidelines, please see our [Contributing Guide](CONTRIBUTING.md).
224
+
225
+ ## Support
226
+
227
+ If you discover any issues or have questions, please create an issue on GitHub.
228
+
229
+ ## License
230
+
231
+ The gem is available as open source under the terms of the MIT License. See [LICENSE.txt](LICENSE.txt) for details.
232
+
233
+ ## Code of Conduct
234
+
235
+ Everyone interacting in the Deepseek project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).
data/bin/console ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "deepseek"
5
+ require "pry"
6
+
7
+ # Load environment variables from .env file if present
8
+ begin
9
+ require 'dotenv'
10
+ Dotenv.load
11
+ rescue LoadError
12
+ # dotenv gem not installed, skipping
13
+ end
14
+
15
+ # Configure the client with environment variables
16
+ Deepseek.configure do |config|
17
+ config.api_key = ENV['DEEPSEEK_API_KEY']
18
+ end
19
+
20
+ # Create a client instance for convenience
21
+ @client = Deepseek::Client.new
22
+
23
+ puts "Loaded Deepseek Ruby SDK (v#{Deepseek::VERSION})"
24
+ puts "Environment: #{ENV['DEEPSEEK_ENV'] || 'development'}"
25
+ puts "\nAvailable variables:"
26
+ puts " @client - Preconfigured Deepseek::Client instance"
27
+ puts "\nExample usage:"
28
+ puts ' response = @client.chat(messages: [{ role: "user", content: "Hello!" }])'
29
+ puts "\n"
30
+
31
+ Pry.start
data/bin/setup ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+ require 'fileutils'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = File.expand_path('..', __dir__)
6
+
7
+ def system!(*args)
8
+ system(*args) || abort("\n== Command #{args} failed ==")
9
+ end
10
+
11
+ FileUtils.chdir APP_ROOT do
12
+ # This script is a way to set up or update your development environment automatically.
13
+ puts '== Installing dependencies =='
14
+ system! 'gem install bundler --conservative'
15
+ system('bundle check') || system!('bundle install')
16
+
17
+ puts "\n== Creating example .env file =="
18
+ if File.exist?('.env')
19
+ puts '== .env file already exists =='
20
+ else
21
+ FileUtils.cp '.env.example', '.env' if File.exist?('.env.example')
22
+ end
23
+
24
+ puts "\n== Removing old logs and tempfiles =="
25
+ system! 'bin/rake log:clear tmp:clear'
26
+
27
+ puts "\n== Setup complete =="
28
+ end
@@ -0,0 +1,121 @@
1
+ require 'faraday'
2
+ require 'faraday/retry'
3
+ require 'json'
4
+
5
+ module Deepseek
6
+ class Client
7
+ attr_reader :config
8
+
9
+ def initialize(api_key: nil, **options)
10
+ @config = Configuration.new
11
+ @config.api_key = api_key if api_key
12
+ options.each do |key, value|
13
+ @config.send("#{key}=", value) if @config.respond_to?("#{key}=")
14
+ end
15
+ @config.validate! # This will raise ConfigurationError if no API key is set
16
+ end
17
+
18
+ def chat(messages:, model: 'deepseek-chat', **params)
19
+ post('/v1/chat/completions', {
20
+ model: model,
21
+ messages: messages,
22
+ **params
23
+ })
24
+ rescue Faraday::Error => e
25
+ handle_error_response(e.response) if e.response
26
+ raise e
27
+ end
28
+
29
+ private
30
+
31
+ def connection
32
+ @connection ||= Faraday.new(url: config.api_base_url) do |faraday|
33
+ faraday.request :json
34
+
35
+ faraday.request :retry, {
36
+ max: config.max_retries,
37
+ interval: 0.5,
38
+ interval_randomness: 0.5,
39
+ backoff_factor: 2,
40
+ exceptions: [
41
+ Faraday::ConnectionFailed,
42
+ Faraday::TimeoutError,
43
+ 'Timeout::Error',
44
+ 'Error::TimeoutError'
45
+ ]
46
+ }
47
+
48
+ # Don't automatically raise errors, we want to handle them ourselves
49
+ faraday.response :raise_error
50
+
51
+ faraday.adapter Faraday.default_adapter
52
+ faraday.options.timeout = config.timeout
53
+ end
54
+ end
55
+
56
+ def handle_error_response(response)
57
+ status = response[:status]
58
+ error_info = parse_error_response(response[:body])
59
+
60
+ case status
61
+ when 401
62
+ raise AuthenticationError.new(error_info[:message], code: status, response: response)
63
+ when 429
64
+ raise RateLimitError.new(error_info[:message], code: status, response: response)
65
+ when 400, 404
66
+ raise InvalidRequestError.new(error_info[:message], code: status, response: response)
67
+ when 500..599
68
+ raise ServiceUnavailableError.new("Service error: #{status}", code: status, response: response)
69
+ else
70
+ raise APIError.new("Unknown error: #{status}", code: status, response: response)
71
+ end
72
+ end
73
+
74
+ def parse_error_response(body)
75
+ return { message: body } unless body.is_a?(String)
76
+
77
+ parsed = JSON.parse(body, symbolize_names: true)
78
+ {
79
+ message: parsed.dig(:error, :message) || parsed[:message] || "Unknown error",
80
+ code: parsed.dig(:error, :code) || parsed[:code]
81
+ }
82
+ rescue JSON::ParserError
83
+ { message: body }
84
+ end
85
+
86
+ def request_headers
87
+ {
88
+ 'Authorization' => "Bearer #{config.api_key}",
89
+ 'Content-Type' => 'application/json',
90
+ 'Accept' => 'application/json',
91
+ 'User-Agent' => "deepseek-ruby/#{VERSION}"
92
+ }
93
+ end
94
+
95
+ def post(endpoint, body = {})
96
+ response = connection.post(endpoint) do |req|
97
+ req.headers = request_headers
98
+ req.body = body
99
+ end
100
+
101
+ case response.status
102
+ when 200..299
103
+ JSON.parse(response.body)
104
+ else
105
+ handle_error_response(
106
+ status: response.status,
107
+ body: response.body,
108
+ headers: response.headers,
109
+ request: {
110
+ method: 'POST',
111
+ url: response.env.url.to_s,
112
+ headers: response.env.request_headers,
113
+ body: body
114
+ }
115
+ )
116
+ end
117
+ rescue JSON::ParserError
118
+ raise APIError.new("Invalid JSON response", response: response)
119
+ end
120
+ end
121
+ end
@@ -0,0 +1,16 @@
1
+ module Deepseek
2
+ class Configuration
3
+ attr_accessor :api_key, :api_base_url, :timeout, :max_retries
4
+
5
+ def initialize
6
+ @api_key = ENV['DEEPSEEK_API_KEY']
7
+ @api_base_url = ENV['DEEPSEEK_API_BASE_URL'] || 'https://api.deepseek.com'
8
+ @timeout = ENV['DEEPSEEK_TIMEOUT']&.to_i || 30
9
+ @max_retries = ENV['DEEPSEEK_MAX_RETRIES']&.to_i || 3
10
+ end
11
+
12
+ def validate!
13
+ raise ConfigurationError, 'API key must be set' if api_key.nil? || api_key.to_s.strip.empty?
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,21 @@
1
+ module Deepseek
2
+ class Error < StandardError; end
3
+
4
+ class ConfigurationError < Error; end
5
+
6
+ class APIError < Error
7
+ attr_reader :code, :response
8
+
9
+ def initialize(message = nil, code: nil, response: nil)
10
+ @code = code
11
+ @response = response
12
+ super(message)
13
+ end
14
+ end
15
+
16
+ class AuthenticationError < APIError; end
17
+ class RateLimitError < APIError; end
18
+ class InvalidRequestError < APIError; end
19
+ class APIConnectionError < APIError; end
20
+ class ServiceUnavailableError < APIError; end
21
+ end
@@ -0,0 +1,3 @@
1
+ module Deepseek
2
+ VERSION = "0.1.0"
3
+ end
data/lib/deepseek.rb ADDED
@@ -0,0 +1,25 @@
1
+ require 'faraday'
2
+ require 'json'
3
+
4
+ require_relative 'deepseek/version'
5
+ require_relative 'deepseek/configuration'
6
+ require_relative 'deepseek/errors'
7
+ require_relative 'deepseek/client'
8
+
9
+ module Deepseek
10
+ class << self
11
+ attr_writer :configuration
12
+
13
+ def configuration
14
+ @configuration ||= Configuration.new
15
+ end
16
+
17
+ def configure
18
+ yield(configuration)
19
+ end
20
+
21
+ def reset_configuration!
22
+ @configuration = Configuration.new
23
+ end
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,216 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: deepseek-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Nagendra Dhanakeerthi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-02-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday-retry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '13.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '13.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.22.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.22.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov-cobertura
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.1'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: yard
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.9'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.9'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pry
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.14'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.14'
167
+ description: A comprehensive Ruby client library for interacting with Deepseek's AI
168
+ APIs, providing a simple and intuitive interface for making API calls, handling
169
+ responses, and managing API resources.
170
+ email:
171
+ - nagendra.dhanakeerthi@gmail.com
172
+ executables:
173
+ - console
174
+ - setup
175
+ extensions: []
176
+ extra_rdoc_files: []
177
+ files:
178
+ - CHANGELOG.md
179
+ - LICENSE.txt
180
+ - README.md
181
+ - bin/console
182
+ - bin/setup
183
+ - lib/deepseek.rb
184
+ - lib/deepseek/client.rb
185
+ - lib/deepseek/configuration.rb
186
+ - lib/deepseek/errors.rb
187
+ - lib/deepseek/version.rb
188
+ homepage: https://github.com/nagstler/deepseek-ruby
189
+ licenses:
190
+ - MIT
191
+ metadata:
192
+ homepage_uri: https://github.com/nagstler/deepseek-ruby
193
+ source_code_uri: https://github.com/nagstler/deepseek-ruby
194
+ changelog_uri: https://github.com/nagstler/deepseek-ruby/blob/main/CHANGELOG.md
195
+ documentation_uri: https://github.com/nagstler/deepseek-ruby/blob/main/README.md
196
+ bug_tracker_uri: https://github.com/nagstler/deepseek-ruby/issues
197
+ post_install_message:
198
+ rdoc_options: []
199
+ require_paths:
200
+ - lib
201
+ required_ruby_version: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - ">="
204
+ - !ruby/object:Gem::Version
205
+ version: 2.7.0
206
+ required_rubygems_version: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ requirements: []
212
+ rubygems_version: 3.4.19
213
+ signing_key:
214
+ specification_version: 4
215
+ summary: Ruby SDK for Deepseek AI API
216
+ test_files: []