perplexity_api 0.2.0 → 0.2.1
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 +4 -4
- data/Gemfile.lock +1 -3
- data/README.md +4 -5
- data/lib/perplexity_api/version.rb +1 -1
- data/perplexity_api.gemspec +0 -1
- metadata +2 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e12f67af2fe793c9b3e55bab4bf16bb16ddc01340af2b6ed1ae89e54c0501a63
|
4
|
+
data.tar.gz: adec45a5e5209bafef27fc2ce2dd8a098654b1c7ef32de6c52bd62629a40a14c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1823a33101eea983a021a20c225a379193116bc0efbaffc8aff5a49afd45d111fcb096ef6a10da433a5b136c4f8469911c3b74a46744d9873d8a0fc39aa640f3
|
7
|
+
data.tar.gz: 7d73bbe2a1d1b865bc5c72f440ebf7622df70001b0ac5f453d65432fc3668eaa507b67b6fcd3883baed28a6425d3aa130d3dfcd8f41f011732af71461fc4d7a3
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
perplexity_api (0.
|
4
|
+
perplexity_api (0.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
diff-lcs (1.6.1)
|
10
|
-
dotenv (2.8.1)
|
11
10
|
rake (10.5.0)
|
12
11
|
rspec (3.13.0)
|
13
12
|
rspec-core (~> 3.13.0)
|
@@ -28,7 +27,6 @@ PLATFORMS
|
|
28
27
|
|
29
28
|
DEPENDENCIES
|
30
29
|
bundler (~> 1.17)
|
31
|
-
dotenv (~> 2.7)
|
32
30
|
perplexity_api!
|
33
31
|
rake (~> 10.0)
|
34
32
|
rspec (~> 3.0)
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
# PerplexityApi
|
2
|
+
[](https://badge.fury.io/rb/perplexity_api)
|
3
|
+
[](LICENSE.txt)
|
2
4
|
|
3
5
|
A Ruby wrapper gem for Perplexity AI's API. This gem allows you to easily integrate Perplexity AI's powerful language models into your Ruby applications.
|
4
6
|
|
@@ -54,13 +56,10 @@ PERPLEXITY_TOP_P=0.9
|
|
54
56
|
PERPLEXITY_TOP_K=0
|
55
57
|
```
|
56
58
|
|
57
|
-
|
59
|
+
You can set these environment variables in your application's environment or use a method of your choice to load them from a `.env` file.
|
58
60
|
|
59
61
|
```ruby
|
60
|
-
|
61
|
-
Dotenv.load # Load environment variables from .env file
|
62
|
-
|
63
|
-
# Then use the PerplexityApi gem
|
62
|
+
# After setting environment variables, use the PerplexityApi gem
|
64
63
|
require 'perplexity_api'
|
65
64
|
```
|
66
65
|
|
data/perplexity_api.gemspec
CHANGED
@@ -38,7 +38,6 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency "bundler", "~> 1.17"
|
39
39
|
spec.add_development_dependency "rake", "~> 10.0"
|
40
40
|
spec.add_development_dependency "rspec", "~> 3.0"
|
41
|
-
spec.add_development_dependency "dotenv", "~> 2.7"
|
42
41
|
|
43
42
|
spec.required_ruby_version = ">= 2.6.0"
|
44
43
|
end
|
metadata
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perplexity_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hisafumi Kikkawa
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
10
|
date: 2025-03-27 00:00:00.000000000 Z
|
@@ -52,20 +51,6 @@ dependencies:
|
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: '3.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: dotenv
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.7'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.7'
|
69
54
|
description: A Ruby library for easily using Perplexity AI's API. Allows setting API
|
70
55
|
keys, selecting models, and customizing options.
|
71
56
|
email:
|
@@ -101,7 +86,6 @@ metadata:
|
|
101
86
|
homepage_uri: https://github.com/hisafumi-kikkawa/perplexity_api
|
102
87
|
source_code_uri: https://github.com/hisafumi-kikkawa/perplexity_api
|
103
88
|
changelog_uri: https://github.com/hisafumi-kikkawa/perplexity_api/blob/master/CHANGELOG.md
|
104
|
-
post_install_message:
|
105
89
|
rdoc_options: []
|
106
90
|
require_paths:
|
107
91
|
- lib
|
@@ -116,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
100
|
- !ruby/object:Gem::Version
|
117
101
|
version: '0'
|
118
102
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
120
|
-
signing_key:
|
103
|
+
rubygems_version: 3.6.2
|
121
104
|
specification_version: 4
|
122
105
|
summary: Ruby wrapper for Perplexity API
|
123
106
|
test_files: []
|