-
Notifications
You must be signed in to change notification settings - Fork 1
Add support for repetition penalty and min_p parameters #709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
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