8000 Use 3.7 flash for ai.generate_text default by copybara-service[bot] · Pull Request #6139 · googlecolab/colabtools · GitHub
[go: up one dir, main page]

Skip to content
Merged
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
4 changes: 2 additions & 2 deletions google/colab/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ class ModelProxyServiceError(Exception):

def generate_text(
prompt: str,
model_name: str = 'google/gemini-3.5-flash',
model_name: str = 'google/gemini-3.7-flash',
stream: bool = False,
) -> str | Generator[str, Any, None]:
"""Generates text using the given prompt and model.

Args:
prompt: The input text or question.
model_name: The name of the model to use (currently defaults to
'google/gemini-3.5-flash').
'google/gemini-3.7-flash').
stream: If `True`, the response will be streamed back in chunks. If `False`,
the complete generated text will be returned at once.

Expand Down
Loading
0