Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test: add gemini-2.0-flash-lite-001 test #1729

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 14, 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
5 changes: 3 additions & 2 deletions bigframes/ml/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ def fit(
y: utils.ArrayType,
) -> GeminiTextGenerator:
"""Fine tune GeminiTextGenerator model. Only support "gemini-1.5-pro-002",
and "gemini-1.5-flash-002" models for now.
"gemini-1.5-flash-002", "gemini-2.0-flash-001",
and "gemini-2.0-flash-lite-001"models for now.

.. note::

Expand All @@ -549,7 +550,7 @@ def fit(
"""
if self.model_name not in _GEMINI_FINE_TUNE_SCORE_ENDPOINTS:
msg = exceptions.format_message(
"fit() only supports gemini-1.5-pro-002, or gemini-1.5-flash-002 model."
"fit() only supports gemini-1.5-pro-002, gemini-1.5-flash-002, gemini-2.0-flash-001, or gemini-2.0-flash-lite-001 model."
)
warnings.warn(msg)

Expand Down
1 change: 1 addition & 0 deletions tests/system/load/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,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",
"gemini-2.0-flash-lite-001",
),
)
def test_llm_gemini_configure_fit(
Expand Down