Skip to content

Conversation

@WH-2099
Copy link
Member

@WH-2099 WH-2099 commented Jan 29, 2026

Related Issues or Context

Fixes #2426
Closes #2515
Closes #2516

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

This PR contains Changes to LLM Models Plugin

  • My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
  • My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)
  • My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
  • My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
  • My Changes Affect Structured Output Format (JSON, XML, etc.)
  • My Changes Affect Token Consumption Metrics
  • My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)
  • Other Changes (Add New Models, Fix Model Parameters etc.)

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.6.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: , I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

Remove 35 model configuration files that have been officially shut down
or deprecated according to the Gemini API changelog (as of 2026-01-29):

LLM models removed:
- Gemini 1.0 series (gemini-pro, gemini-pro-vision)
- Gemini 1.5 series (all variants including experimental)
- Gemini 2.0/2.5 preview and experimental models
- Legacy experimental models (gemini-exp-*)

Text embedding models removed:
- embedding-001 (shut down Oct 2025)
- text-embedding-004 (shut down Jan 14, 2026)

Also updated:
- IMAGE_GENERATION_MODELS in llm.py to remove shut down models
- text_embedding/_position.yaml to remove deleted model references

Models retained for future deprecation monitoring:
- gemini-2.0-flash series (shutdown: March 31, 2026)
- gemini-2.5-pro/flash stable versions (shutdown: June 17, 2026)
- gemini-3 preview series (no shutdown date announced)

Closes #2515
Replace `count_tokens` API call with `generate_content` in
validate_credentials method to align with other providers
(OpenAI, Anthropic).

This ensures credentials are validated against actual LLM usage,
preventing cases where credentials pass validation but fail
during real generation calls.

Changes:
- Use genai_client.models.generate_content() instead of count_tokens()
- Add temperature=0 and max_output_tokens=20 config for minimal usage
- Update docstring to clarify the validation approach

Closes #2516
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Jan 29, 2026
@WH-2099 WH-2099 self-assigned this Jan 29, 2026
…g behavior

Update test expectations to align with the implementation that filters out
assistant messages with empty parts. Empty content assistant messages are
now correctly expected to be removed rather than kept with empty parts lists.
@WH-2099 WH-2099 requested a review from Stream29 January 29, 2026 16:44
@WH-2099 WH-2099 deployed to models/gemini January 29, 2026 16:45 — with GitHub Actions Active
Copy link
Collaborator

@Stream29 Stream29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove the models' names from _position.yaml without deleting the models file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

3 participants