Skip to content

test: add gemini-2.0 test for production-ready features #1718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bigframes/ml/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
_GEMINI_1P5_FLASH_002_ENDPOINT,
_GEMINI_2_FLASH_EXP_ENDPOINT,
_GEMINI_2_FLASH_001_ENDPOINT,
_GEMINI_2_FLASH_LITE_001_ENDPOINT,
)

_CLAUDE_3_SONNET_ENDPOINT = "claude-3-sonnet"
Expand Down
3 changes: 2 additions & 1 deletion tests/system/load/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def llm_remote_text_pandas_df():
return pd.DataFrame(
{
"prompt": [
"Please do sentiment analysis on the following text and only output a number from 0 to 5where 0 means sadness, 1 means joy, 2 means love, 3 means anger, 4 means fear, and 5 means surprise. Text: i feel beautifully emotional knowing that these women of whom i knew just a handful were holding me and my baba on our journey",
"Please do sentiment analysis on the following text and only output a number from 0 to 5 where 0 means sadness, 1 means joy, 2 means love, 3 means anger, 4 means fear, and 5 means surprise. Text: i feel beautifully emotional knowing that these women of whom i knew just a handful were holding me and my baba on our journey",
"Please do sentiment analysis on the following text and only output a number from 0 to 5 where 0 means sadness, 1 means joy, 2 means love, 3 means anger, 4 means fear, and 5 means surprise. Text: i was feeling a little vain when i did this one",
"Please do sentiment analysis on the following text and only output a number from 0 to 5 where 0 means sadness, 1 means joy, 2 means love, 3 means anger, 4 means fear, and 5 means surprise. Text: a father of children killed in an accident",
],
Expand All @@ -43,6 +43,7 @@ def llm_remote_text_df(session, llm_remote_text_pandas_df):
(
"gemini-1.5-pro-002",
"gemini-1.5-flash-002",
"gemini-2.0-flash-001",
),
)
def test_llm_gemini_configure_fit(
Expand Down
1 change: 1 addition & 0 deletions tests/system/small/ml/test_multimodal_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_multimodal_embedding_generator_predict_default_params_success(
"gemini-1.5-flash-002",
"gemini-2.0-flash-exp",
"gemini-2.0-flash-001",
"gemini-2.0-flash-lite-001",
),
)
@pytest.mark.flaky(retries=2)
Expand Down