foobara-ai 0.0.10 → 0.0.11

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: c4bf17d2f511bc0aece906ac724c2a9e11d4f103891e845474caa8f5ee865cde
4
- data.tar.gz: 0f82b4935e9b7a8ce9f666503dd185cc9bac822b1672e320a6ffae8642ec40be
3
+ metadata.gz: bc15c8346f2afa89586829dba2c16741e63838012af8120b790018941cda79b4
4
+ data.tar.gz: 942a26bfe13bdc7d51deeb800bcbdd6d7ee1b7ccbe696ff26b233ff27bbbe256
5
5
  SHA512:
6
- metadata.gz: 0efa6dc579de37f2a4ee9cdd396e9f0c3e3157293b7464ca279ad754ce990cdf1b240cd5ae2cb95389fdfdc094c32af0e417cdd23d1667bf41459f7ee3c833d9
7
- data.tar.gz: b0ac2c1ac18eae8c25b406d7ffe734c67cfd945bec1f76b2223595d57d81ce94976116c921526938749e39ecd15223a0b0c837679ca7fafc65a322b48ca6f2cc
6
+ metadata.gz: 8664935bc503f4531bdbe7a801e3c6d7968cf25a1a1b2ac2cf7a1c6edef9c06c51119499fe8a3e59e41d3afda1662766049cd49a43d1c0d3fc8d581e8877b9d5
7
+ data.tar.gz: 10bb054e4e6d56c9fa69e30aa5b18f49bf660dd6795f51d03bf362b3efdabbca9a62810a2958eb3eaebaa897225b0900aa494da7787c255248cacfb357bca84a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.0.11] - 2025-03-06
2
+
3
+ - Fix bug that broke ListModels
4
+ - Change default model to Claude 3.7
5
+
1
6
  ## [0.0.10] - 2025-03-05
2
7
 
3
8
  - Do not require all 3 services to function. Let user require which services they want to use.
data/lib/foobara/ai.rb CHANGED
@@ -21,6 +21,13 @@ module Foobara
21
21
  ai_services[Types::ServiceEnum::OLLAMA] = OllamaApi
22
22
  end
23
23
 
24
+ if ai_services.empty?
25
+ # :nocov:
26
+ require "foobara/anthropic_api"
27
+ ai_services = { Types::ServiceEnum::ANTHROPIC => AnthropicApi }
28
+ # :nocov:
29
+ end
30
+
24
31
  ai_services.each_value do |domain|
25
32
  foobara_depends_on domain
26
33
  end
@@ -8,7 +8,7 @@ module Foobara
8
8
  question :string, :required, "whatever you want to know!"
9
9
  instructions :string, "Results in a system prompt. You can specify how you want the LLM to behave."
10
10
  service :service_enum, "If two services expose the same model, you can specify which one to use."
11
- model :model_enum, default: "gpt-3.5-turbo", description: "The model to use."
11
+ model :model_enum, default: "claude-3-7-sonnet-20250219", description: "The model to use."
12
12
  end
13
13
 
14
14
  result :string
@@ -10,7 +10,7 @@ module Foobara
10
10
  result [Types::Model]
11
11
 
12
12
  LIST_COMMANDS = AI_SERVICES.keys.map do |service|
13
- Foobara::Ai::AnswerBot::DomainMappers::ServiceToChatCompletionCommand.map!(service)
13
+ Foobara::Ai::AnswerBot::DomainMappers::ServiceToListModelsCommand.map!(service)
14
14
  end
15
15
 
16
16
  depends_on(*LIST_COMMANDS)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-05 00:00:00.000000000 Z
10
+ date: 2025-03-06 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  email:
13
13
  - azimux@gmail.com