everyai 0.0.9 → 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: 59621dda63f639c9c658042856aaf89ee708a0cf01c2c217716569da58cd4c7b
4
- data.tar.gz: c7460641ad8dece7da0605e635bf9de6db36f475225294b828c6287f2181850d
3
+ metadata.gz: d9ce332d265c284777e9bac67c7f25b2042d8d718756799ec27fd33c70e16934
4
+ data.tar.gz: 77e8c4de76f38366bcfe316b1cb38541fd98184b0443afd9b2d835006dd1fd90
5
5
  SHA512:
6
- metadata.gz: 2fb03a5415e25f007ea979511677ca87b7a4c15bf3b277d73b118eb9bac32bb43d7e64d73b1bc02fc5cc0f34033dc7ba97aae8086e7a002fcbf0572380ccc5af
7
- data.tar.gz: 44ac534294a575394af6f2f72a4317888103eb46e0290fa4e03f8c7d59ba05e7423f3bc37889ccd0427afbd2d83733c3dda4d9c7ac059bcab03e7ce31a69a3e8
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"]
@@ -36,14 +36,15 @@ class Everyai
36
36
  end
37
37
  end
38
38
 
39
- attr_reader :response_data, :id, :name, :agent_id, :iframe_code
39
+ attr_reader :response_data, :id, :name, :agent_id, :iframe_code_popup, :iframe_code_inline
40
40
 
41
41
  def initialize(**data)
42
42
  @response_data = data
43
43
  @id = data[:chatbot_id]
44
44
  @name = data[:name]
45
45
  @agent_id = data[:agent_id]
46
- @iframe_code = data[:iframe_code]
46
+ @iframe_code_popup = data[:iframe_code_popup]
47
+ @iframe_code_inline = data[:iframe_code_inline]
47
48
  end
48
49
  end
49
50
  end
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
@@ -44,4 +44,4 @@ class Everyai
44
44
  end
45
45
 
46
46
  require_relative 'everyai/agent'
47
- require_relative 'everyai/chatbot'
47
+ require_relative 'everyai/chatbot'
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.0.9
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-23 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