Skip to content

fix(core): update gemini insight reasoning handling#2729

Open
EAGzzyCSL wants to merge 1 commit into
mainfrom
zzy/gemini-insight
Open

fix(core): update gemini insight reasoning handling#2729
EAGzzyCSL wants to merge 1 commit into
mainfrom
zzy/gemini-insight

Conversation

@EAGzzyCSL

Copy link
Copy Markdown
Collaborator

Summary

  • Update insight extraction output from <thought> to <observation> while keeping the internal result field as thought.
  • Adjust Gemini reasoning configuration so thinking_config and OpenAI-compatible reasoning_effort are not sent together.
  • Support Gemini thinking_budget / thinking_level behavior, including reasoningBudget: 0, and update related docs in English and Chinese.

Validation

  • pnpm --filter @midscene/core exec vitest --run tests/unit-test/extraction.test.ts tests/unit-test/inspect-extract-prompt.test.ts tests/unit-test/model-adapter/gemini.test.ts tests/unit-test/prompt/prompt.test.ts
  • pnpm --filter @midscene/core exec vitest --run tests/unit-test/model-adapter/gemini.test.ts

Note: the commit hook also ran its configured formatting/check tasks on staged files during commit.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: c33fec3
Status: ✅  Deploy successful!
Preview URL: https://9fe832b1.midscene.pages.dev
Branch Preview URL: https://zzy-gemini-insight.midscene.pages.dev

View logs

@EAGzzyCSL EAGzzyCSL force-pushed the zzy/gemini-insight branch from 70d67e6 to c33fec3 Compare June 28, 2026 03:13
@EAGzzyCSL EAGzzyCSL marked this pull request as ready for review June 29, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants