Skip to content

Comments

Small model naming#7394

Open
DOsinga wants to merge 2 commits intomainfrom
small-model-naming
Open

Small model naming#7394
DOsinga wants to merge 2 commits intomainfrom
small-model-naming

Conversation

@DOsinga
Copy link
Collaborator

@DOsinga DOsinga commented Feb 20, 2026

Summary

This is probably going to take more effort than this, but we had some weird responses from smaller models. "the real result" was a common pattern.

Copy link
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

This PR addresses issues with smaller language models that include reasoning in session name responses (e.g., "the real result" patterns) instead of returning only the title as requested. The solution combines a more explicit prompt instruction with a post-processing function that extracts the actual title from model output that may contain reasoning.

Changes:

  • Updated session naming prompt to explicitly instruct "Do not show your reasoning"
  • Added extract_short_title() function to extract titles from model outputs containing reasoning
  • Added comprehensive test coverage for the title extraction logic

Reviewed changes

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

File Description
crates/goose/src/providers/base.rs Implements extract_short_title() function to extract titles from quoted text or last line when model includes reasoning; integrates function into session name generation
crates/goose/src/prompts/session_name.md Adds explicit instruction to prevent models from showing reasoning in their responses

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