Add support for repetition penalty and min_p parameters#709
Add support for repetition penalty and min_p parameters#709
Conversation
WalkthroughAdds two new generation parameters ( Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ParameterResolutionService
participant Connector
participant Backend API
Client->>ParameterResolutionService: resolve_parameters (with repetition_penalty, min_p)
ParameterResolutionService->>ParameterResolutionService: Apply precedence pipeline
ParameterResolutionService-->>Client: ResolvedParameters (includes new fields)
Client->>Connector: chat_completions (ChatRequest)
Connector->>Connector: Check parameter support
alt Parameter Supported (e.g., OpenRouter, Gemini)
Connector->>Connector: Include in payload
Connector->>Backend API: POST with repetition_penalty, min_p
else Parameter Unsupported
Connector->>Connector: Log warning, omit from payload
Connector->>Backend API: POST without parameter
end
Backend API-->>Connector: Response
Connector-->>Client: ResponseEnvelope
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes
Extra attention needed:
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (11)
🧰 Additional context used📓 Path-based instructions (2)**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
src/**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔇 Additional comments (6)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
repetition_penaltyandmin_pTesting
Codex Task
Summary by CodeRabbit
New Features
repetition_penaltyandmin_p) to fine-tune response generation across supported LLM backends.Chores