Skip to content

Commit

Permalink
fix: fix test issues in CI with API keys and gemini 1.0 pro
Browse files Browse the repository at this point in the history
  • Loading branch information
DynamesC committed Aug 22, 2024
1 parent 5a2e63d commit fa91eb1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugin/bundles/gemini_vision_models/resources/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ chat_completion_by_gemini_1_0_pro_input_prompt_name: "Prompt"
chat_completion_by_gemini_1_0_pro_input_prompt_description: "The prompt for the model"
chat_completion_by_gemini_1_0_pro_output_result_name: "Result"
chat_completion_by_gemini_1_0_pro_output_result_description: "The textual response from the model"
chat_completion_by_gemini_1_0_pro_name: "Chat completion by gemini 1.0 pro"
chat_completion_by_gemini_1_0_pro_description: "Get textual responses from Gemini 1.0 Pro Vision model. Input an image url and a textual prompt."
chat_completion_by_gemini_1_0_pro_name: "(Deprecated) Chat completion by gemini 1.0 pro"
chat_completion_by_gemini_1_0_pro_description: "This plugin is deprecated by Google since July 12, 2024, and should not be used. Original description: Get textual responses from Gemini 1.0 Pro Vision model. Input an image url and a textual prompt."

chat_completion_by_gemini_1_5_pro_input_image_url_name: "Image Url"
chat_completion_by_gemini_1_5_pro_input_image_url_description: "The url of the image"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ test:
- input:
arrival_id: AUS
departure_id: CDG
outbound_date: '2024-07-30'
outbound_date: '2025-01-30'
type: 2
mode: schema
10 changes: 8 additions & 2 deletions plugin/test/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ def generate_test_cases():
cases = []
for bundle_dir_name in bundle_dir_names:

if bundle_dir_name in ["aftership", "coin_market_cap", "api_ninjas_commodity_price"]:
if bundle_dir_name in [
"aftership",
"coin_market_cap",
"api_ninjas_commodity_price",
"geospy_api",
"weather_bit",
]:
continue

bundle_dir_path = os.path.join(bundles_path, bundle_dir_name)
Expand All @@ -58,7 +64,7 @@ def generate_test_cases():
plugin_ids = [id for id in plugin_ids if not id.startswith("_")]

for plugin_id in plugin_ids:
if plugin_id in ["get_historical_exchange_rate"]:
if plugin_id in ["get_historical_exchange_rate", "chat_completion_by_gemini_1_0_pro"]:
continue
plugin_path = os.path.join(bundle_plugins_path, plugin_id)
plugin_schema_path = os.path.join(plugin_path, "plugin_schema.yml")
Expand Down

0 comments on commit fa91eb1

Please sign in to comment.