everyai 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/everyai.rb +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da985040f067d0f4e3e2c2104c64a56a2c4156dbe827863fc72cb701da26b20c
|
4
|
+
data.tar.gz: c05b7557130dca4bc7d074c2307d0f290c0da469608005ca34d80426c1555402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6636b361127a42a18c1eb4915b06a3eec6a1be3c72437ede4ad4023d43b8f19f17bb48c3a4af1a05d149180275e75f3334a01d9ad0af8e0c4cfe5a6d0a51183b
|
7
|
+
data.tar.gz: a77f8c51803d6e9250ae1912f320836c3e63eba37b377d822bc09637be3ea68c6609c0d2924eee7ef5ea507855af4a37f2379a8dbb851161d374624457a473a1
|
data/lib/everyai.rb
CHANGED
@@ -3,7 +3,8 @@ require 'uri'
|
|
3
3
|
require 'json'
|
4
4
|
|
5
5
|
class Everyai
|
6
|
-
|
6
|
+
DOMAIN = "https://every-llm.com" #"http://localhost:3000"
|
7
|
+
API_GENERATIONS_PATH = "#{DOMAIN}/api/v1/generations"
|
7
8
|
|
8
9
|
class << self
|
9
10
|
@api_key = nil
|
@@ -26,5 +27,17 @@ class Everyai
|
|
26
27
|
body["errors"]
|
27
28
|
end
|
28
29
|
end
|
30
|
+
|
31
|
+
def chatgpt(prompt, model: "chatgpt")
|
32
|
+
generate(prompt, model: model )
|
33
|
+
end
|
34
|
+
|
35
|
+
def llama(prompt, model: "llama3.1")
|
36
|
+
generate(prompt, model: model)
|
37
|
+
end
|
38
|
+
|
39
|
+
def anthropic(prompt, model: "anthropic")
|
40
|
+
generate(prompt, model: model)
|
41
|
+
end
|
29
42
|
end
|
30
43
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everyai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enoch Tamulonis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-09-
|
12
|
+
date: 2024-09-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This ruby gem allows you to connect to any AI model with one simple interface.
|
15
15
|
Never worry about configuration and installing libraries. We make connecting to
|