summaryrefslogtreecommitdiff
path: root/spec/logic/providers/openai/tools_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/logic/providers/openai/tools_spec.rb')
-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