summaryrefslogtreecommitdiff
path: root/spec/logic/providers/openai
diff options
context:
space:
mode:
authoricebaker <113217272+icebaker@users.noreply.github.com>2023-12-15 08:35:09 -0300
committerGitHub <noreply@github.com>2023-12-15 08:35:09 -0300
commitf3200fe0448044ebf43fb52f40a47bc648082c56 (patch)
tree6a5db83f9210a15b4e57516791d23f353b27f7a3 /spec/logic/providers/openai
parentfb96658a1ca4b6e3e0505e7a39f660e1a05b3c6e (diff)
parent639fcc2da50333da00fe50a0970fe28b4e5e9908 (diff)
Merge pull request #9 from icebaker/ib-gemini
Adding support for Google Gemini
Diffstat (limited to 'spec/logic/providers/openai')
-rw-r--r--spec/logic/providers/openai/tools_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/logic/providers/openai/tools_spec.rb b/spec/logic/providers/openai/tools_spec.rb
index 949d097..9757c17 100644
--- a/spec/logic/providers/openai/tools_spec.rb
+++ b/spec/logic/providers/openai/tools_spec.rb
@@ -78,10 +78,15 @@ RSpec.describe NanoBot::Logic::OpenAI::Tools do
expect(described_class.prepare(cartridge[:tools], tools)).to eq(
[{ id: 'call_XYZ',
name: 'get-current-weather',
+ label: 'get-current-weather',
type: 'function',
parameters: { 'location' => 'Tokyo, Japan' },
source: { fennel: "(let [{:location location :unit unit} parameters]\n (.. \"Here is the weather in \" location \", in \" unit \": 35.8°C.\"))\n" } },
- { id: 'call_ZYX', name: 'what-time-is-it', type: 'function', parameters: {},
+ { id: 'call_ZYX',
+ name: 'what-time-is-it',
+ label: 'what-time-is-it',
+ type: 'function',
+ parameters: {},
source: { fennel: "(os.date)\n" } }]
)
end