Skip to content

Add Unitree G1 configuration and update Gemini model to 3.1#2527

Merged
openminddev merged 2 commits into
mainfrom
add-g1-conversation
Apr 15, 2026
Merged

Add Unitree G1 configuration and update Gemini model to 3.1#2527
openminddev merged 2 commits into
mainfrom
add-g1-conversation

Conversation

@openminddev
Copy link
Copy Markdown
Contributor

This pull request introduces a new configuration file for Unitree G1 conversation settings and updates the default Gemini LLM model used in the gemini_llm.py plugin. The main changes focus on improving robot conversational capabilities and ensuring the latest Gemini model is used by default.

Unitree G1 Conversation Configuration:

  • Added a new configuration file unitree_g1_conversation.json5 for the Unitree G1 robot, specifying default modes, API keys, LLM settings, knowledge base integration, and detailed mode setup for greeting conversations, including agent inputs, actions, and lifecycle hooks.

Gemini LLM Plugin Updates:

  • Changed the default Gemini model in the GeminiLLM plugin to use GeminiModel.GEMINI_3_1_FLASH_LITE_PREVIEW if not specified in the config, ensuring use of the latest model version.
  • Updated the fallback model in the ask method to use GeminiModel.GEMINI_3_1_FLASH_LITE_PREVIEW instead of the previous model string.

@openminddev openminddev requested a review from a team as a code owner April 14, 2026 23:50
Copilot AI review requested due to automatic review settings April 14, 2026 23:50
@openminddev openminddev requested review from a team as code owners April 14, 2026 23:50
@github-actions github-actions Bot added robotics Robotics code changes python Python code config Configuration files labels Apr 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Unitree G1 conversation configuration and updates the Gemini LLM plugin to default to the newer Gemini 3.1 Flash Lite Preview model when no model is provided.

Changes:

  • Update GeminiLLM to fall back to GeminiModel.GEMINI_3_1_FLASH_LITE_PREVIEW instead of older hard-coded model strings.
  • Add config/unitree_g1_conversation.json5 defining a greeting-focused conversation mode for Unitree G1 (inputs, ParallelLLM setup, and actions).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/llm/plugins/gemini_llm.py Switches default/fallback Gemini model to the 3.1 Flash Lite Preview enum constant.
config/unitree_g1_conversation.json5 Introduces a Unitree G1 greeting conversation configuration with ASR + history inputs and speak/face/arm actions.

Comment thread src/llm/plugins/gemini_llm.py
Comment thread config/unitree_g1_conversation.json5 Outdated
Comment thread config/unitree_g1_conversation.json5
Comment thread config/unitree_g1_conversation.json5
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Fix config comment to reference Unitree G1 (was Go2) and adjust JSON5 formatting. Update test expectation for GeminiLLM default model from "gemini-2.5-flash" to "gemini-3.1-flash-lite-preview" to match the new default.
@github-actions github-actions Bot added the tests Test files label Apr 15, 2026
@openminddev openminddev merged commit 520cd21 into main Apr 15, 2026
6 checks passed
@openminddev openminddev deleted the add-g1-conversation branch April 15, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Configuration files python Python code robotics Robotics code changes tests Test files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants