From cd702da690ae94727dadceb15178213d59eca654 Mon Sep 17 00:00:00 2001 From: Alex Chaplinsky Date: Wed, 28 Feb 2024 19:44:52 -0800 Subject: [PATCH] Fix specs --- .../cassettes/gemini/chat/chat_message_with_context.yml | 2 +- .../cassettes/gemini/chat/chat_message_with_examples.yml | 2 +- .../cassettes/gemini/chat/chat_message_with_history.yml | 2 +- .../cassettes/gemini/chat/chat_message_with_options.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/fixtures/cassettes/gemini/chat/chat_message_with_context.yml b/spec/fixtures/cassettes/gemini/chat/chat_message_with_context.yml index 892b321..5bb66d3 100644 --- a/spec/fixtures/cassettes/gemini/chat/chat_message_with_context.yml +++ b/spec/fixtures/cassettes/gemini/chat/chat_message_with_context.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=FAKE_TOKEN + uri: https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=FAKE_TOKEN body: encoding: UTF-8 string: '{"contents":[{"role":"user","parts":[{"text":"Respond as if current diff --git a/spec/fixtures/cassettes/gemini/chat/chat_message_with_examples.yml b/spec/fixtures/cassettes/gemini/chat/chat_message_with_examples.yml index 265c546..fa43709 100644 --- a/spec/fixtures/cassettes/gemini/chat/chat_message_with_examples.yml +++ b/spec/fixtures/cassettes/gemini/chat/chat_message_with_examples.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=FAKE_TOKEN + uri: https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=FAKE_TOKEN body: encoding: UTF-8 string: '{"contents":[{"role":"user","parts":[{"text":"user: What is the capital diff --git a/spec/fixtures/cassettes/gemini/chat/chat_message_with_history.yml b/spec/fixtures/cassettes/gemini/chat/chat_message_with_history.yml index 1d2263b..c719262 100644 --- a/spec/fixtures/cassettes/gemini/chat/chat_message_with_history.yml +++ b/spec/fixtures/cassettes/gemini/chat/chat_message_with_history.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=FAKE_TOKEN + uri: https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=FAKE_TOKEN body: encoding: UTF-8 string: '{"contents":[{"role":"user","parts":[{"text":"What is the capital of diff --git a/spec/fixtures/cassettes/gemini/chat/chat_message_with_options.yml b/spec/fixtures/cassettes/gemini/chat/chat_message_with_options.yml index 274027d..2c52464 100644 --- a/spec/fixtures/cassettes/gemini/chat/chat_message_with_options.yml +++ b/spec/fixtures/cassettes/gemini/chat/chat_message_with_options.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=FAKE_TOKEN + uri: https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=FAKE_TOKEN body: encoding: UTF-8 string: '{"contents":[{"role":"user","parts":[{"text":"Hi, how are you?"}]}],"generationConfig":{"temperature":0.9,"max_output_tokens":13}}'