everyai 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb394de3578baf9ddb8679ab4b65481b820729895ced543f3a46f10ab72af075
4
- data.tar.gz: f9218e74b8c996816e3513bf5b2bedae57cdc8da1e9c6464d551c39971c4483f
3
+ metadata.gz: d9ce332d265c284777e9bac67c7f25b2042d8d718756799ec27fd33c70e16934
4
+ data.tar.gz: 77e8c4de76f38366bcfe316b1cb38541fd98184b0443afd9b2d835006dd1fd90
5
5
  SHA512:
6
- metadata.gz: 2cb1ea89f5dc336e19b752766f89e56b688b087753c235216e0857c742f3fc522fbe8d5d7497c0437c478d76bf6bac0802ad4d43e340435f11555391716d1aab
7
- data.tar.gz: 8c4620ccc6a854b8f1ec8a69830b3a8d25715d6b0c0582b2f93bbacef9383944e8939e17ef74383f7389065c193947971bd6d25ad9bec1ba20f728592dbde748
6
+ metadata.gz: d2825e12330524e326e4f8f3d7a5a9453839299594f0bb706aa35c2be96c5f963b6c0ab534bd5b225925dfee1494c94edeaa51c0d4a6c15065672a1b703dd9af
7
+ data.tar.gz: d32fcb0a7e9abb918627b69644f1be9c2f8bfb388b562808c6c8b112b832a0adf698de7e9e190cd663e52b2867b79649a8bda7ddb0ab99e3c03deee360c527c9
data/lib/everyai/agent.rb CHANGED
@@ -41,9 +41,9 @@ class Everyai
41
41
  @instructions = data[:instructions]
42
42
  end
43
43
 
44
- def generate(prompt, model: "llama3.2", **model_options)
44
+ def generate(prompt, **model_options)
45
45
  url = URI.parse(AGENT_GENERATION_PATH)
46
- response = Net::HTTP.post_form(url, { "prompt": prompt, "model": model, "token": Everyai.api_key, "agent_id": id, "options": model_options.to_json })
46
+ response = Net::HTTP.post_form(url, { "prompt": prompt, "model": llm_model, "token": Everyai.api_key, "agent_id": id, "options": model_options.to_json })
47
47
  body = JSON.parse(response.body)
48
48
  if response.kind_of? Net::HTTPSuccess
49
49
  body["results"]
data/lib/everyai.rb CHANGED
@@ -3,8 +3,8 @@ require 'uri'
3
3
  require 'json'
4
4
 
5
5
  class Everyai
6
- DOMAIN = "https://every-llm.com"
7
- #DOMAIN = "http://localhost:3000"
6
+ #DOMAIN = "https://every-llm.com"
7
+ DOMAIN = "http://localhost:3000"
8
8
  API_GENERATIONS_PATH = "#{DOMAIN}/api/v1/generations"
9
9
 
10
10
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everyai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enoch Tamulonis
8
8
  - Kurt Tamulonis
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-24 00:00:00.000000000 Z
11
+ date: 2025-01-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This ruby gem allows you to connect to any AI model with one simple interface.
14
14
  Never worry about configuration and installing libraries. We make connecting to