jxxghp 0e8bcb4df6 fix: patch gemini thought_signature enforcement to cover all function calls
The upstream _parse_chat_history enforcement code uses a first_fc_seen
flag that only adds DUMMY_THOUGHT_SIGNATURE to the first function_call
without thought_signature. Parallel function calls (position 2+) remain
unpatched, causing Gemini API 400 errors for all Gemini 2.5+ models.

Additionally, _is_gemini_3_or_later only matches 'gemini-3', missing
Gemini 2.5 models entirely.

This patch:
1. Extends _is_gemini_3_or_later to also match gemini-2.5 models
2. Wraps _parse_chat_history to ensure ALL function_call parts in ALL
   model messages have thought_signature (not just the first one)
2026-05-25 13:53:02 +08:00
2026-05-25 11:10:39 +08:00
2026-03-08 08:25:07 +08:00
2026-05-23 15:51:08 +08:00
2026-04-20 19:46:34 +08:00
2025-03-23 19:09:48 +08:00
2026-05-25 09:14:08 +08:00

MoviePilot

简体中文 | English

GitHub Repo stars GitHub forks GitHub contributors GitHub repo size GitHub issues Docker Pulls Docker Pulls V2 Platform

Redesigned from parts of NAStool, with a stronger focus on core automation scenarios while reducing issues and making the project easier to extend and maintain.

For learning and personal communication only. Please do not promote this project on platforms in mainland China.

Release channel: https://t.me/moviepilot_channel

Key Features

  • Frontend/backend separation based on FastApi + Vue3.
  • Focuses on core needs, simplifies features and settings, and allows some options to work well with sensible defaults.
  • Reworked user interface for a cleaner and more practical experience.

Installation

Official wiki: https://wiki.movie-pilot.org

Local CLI

One-command bootstrap script:

curl -fsSL https://raw.githubusercontent.com/jxxghp/MoviePilot/v2/scripts/bootstrap-local.sh | bash

Manage MoviePilot with the moviepilot command. Full CLI documentation: docs/cli.md

Add Skills for AI Agents

npx skills add https://github.com/jxxghp/MoviePilot

Development

API documentation: https://api.movie-pilot.org

MCP tool API documentation: see docs/mcp-api.md

Development environment setup and local source-run guide: docs/development-setup.md

Plugin development guide: https://wiki.movie-pilot.org/zh/plugindev

Disclaimer

  • This software is for learning and personal communication only. It must not be used for commercial purposes or illegal activities. The software does not know how users choose to use it, and all responsibility rests with the user.
  • The source code is open source and derived from other open-source code. If someone removes the relevant restrictions and redistributes or publishes modified versions that lead to liability events, the publisher of those modifications bears full responsibility. Public releases that bypass or alter the user authentication mechanism are not recommended.
  • This project does not accept donations and has not published any donation page anywhere. The software itself is free of charge and does not provide paid services. Please verify information carefully to avoid being misled.

Contributors

Description
NAS媒体库自动化管理工具
Readme GPL-3.0 67 MiB
Languages
Python 98.8%
Shell 0.9%
JavaScript 0.2%