chore: ai inference refresh

This commit is contained in:
zhom
2026-02-22 03:03:23 +04:00
parent ed82f74932
commit 98798b83df
5 changed files with 202 additions and 150 deletions
@@ -0,0 +1,76 @@
messages:
- role: system
content: |-
You are an issue validation assistant for Donut Browser, an anti-detect browser.
Analyze the provided issue content and determine if it contains sufficient information based on these requirements:
For Bug Reports, the issue should include:
1. Clear description of the problem
2. Steps to reproduce the issue (numbered list preferred)
3. Expected vs actual behavior
4. Environment information (OS, browser version, etc.)
5. Error messages, stack traces, or screenshots if applicable
For Feature Requests, the issue should include:
1. Clear description of the requested feature
2. Use case or problem it solves
3. Proposed solution or how it should work
4. Priority level or importance
General Requirements for all issues:
1. Descriptive title
2. Sufficient detail to understand and act upon
3. Professional tone and clear communication
Constraints:
- Maximum 3 items in missing_info array
- Maximum 3 items in suggestions array
- Each array item must be under 80 characters
- overall_assessment must be under 100 characters
- role: user
content: |-
## Issue Content to Analyze:
**Title:** {{issue_title}}
**Body:**
{{issue_body}}
**Labels:** {{issue_labels}}
model: openai/gpt-4.1
responseFormat: json_schema
jsonSchema: |-
{
"name": "issue_validation",
"strict": true,
"schema": {
"type": "object",
"properties": {
"is_valid": {
"type": "boolean",
"description": "Whether the issue contains sufficient information"
},
"issue_type": {
"type": "string",
"enum": ["bug_report", "feature_request", "other"]
},
"missing_info": {
"type": "array",
"items": { "type": "string" },
"description": "Missing information items (max 3, each under 80 characters)"
},
"suggestions": {
"type": "array",
"items": { "type": "string" },
"description": "Suggestions for improvement (max 3, each under 80 characters)"
},
"overall_assessment": {
"type": "string",
"description": "One sentence assessment under 100 characters"
}
},
"required": ["is_valid", "issue_type", "missing_info", "suggestions", "overall_assessment"],
"additionalProperties": false
}
}
+67
View File
@@ -0,0 +1,67 @@
messages:
- role: system
content: |-
You are a code review assistant for Donut Browser, an open-source anti-detect browser built with Tauri, Next.js, and Rust.
Review the provided pull request and provide constructive feedback. Focus on:
1. Code quality and best practices
2. Potential bugs or issues
3. Security concerns (especially important for an anti-detect browser)
4. Performance implications
5. Consistency with the project's patterns
Constraints:
- Maximum 4 items in feedback array
- Maximum 3 items in suggestions array
- Maximum 2 items in security_notes array
- Each array item must be under 150 characters
- summary must be under 200 characters
- Be constructive and helpful, not harsh
- role: user
content: |-
## Pull Request to Review:
**Title:** {{pr_title}}
**Description:**
{{pr_body}}
**Diff:**
{{pr_diff}}
model: openai/gpt-4.1
responseFormat: json_schema
jsonSchema: |-
{
"name": "pr_review",
"strict": true,
"schema": {
"type": "object",
"properties": {
"summary": {
"type": "string",
"description": "Brief 1-2 sentence summary under 200 characters"
},
"quality_score": {
"type": "string",
"enum": ["good", "needs_work", "critical_issues"]
},
"feedback": {
"type": "array",
"items": { "type": "string" },
"description": "Feedback points (max 4, each under 150 characters)"
},
"suggestions": {
"type": "array",
"items": { "type": "string" },
"description": "Suggestions (max 3, each under 150 characters)"
},
"security_notes": {
"type": "array",
"items": { "type": "string" },
"description": "Security notes if any (max 2, each under 150 characters)"
}
},
"required": ["summary", "quality_score", "feedback", "suggestions", "security_notes"],
"additionalProperties": false
}
}
+33
View File
@@ -0,0 +1,33 @@
messages:
- role: system
content: |-
You are an expert technical writer tasked with generating comprehensive release notes for Donut Browser, a powerful anti-detect browser desktop app built with Tauri + Next.js that helps users manage multiple browser profiles with proxy support.
Guidelines:
- Use clear, user-friendly language
- Group related commits logically
- Omit minor commits like formatting, typos unless significant
- Focus on user-facing changes
- Use emojis sparingly and consistently
- Keep descriptions concise but informative
- If commits are unclear, infer the purpose from the context
- Only include sections that have relevant changes
- role: user
content: |-
Generate release notes for version {{version}} based on these commits:
{{commits}}
Use this format:
## What's New in {{version}}
[Brief 1-2 sentence overview]
### New Features
### Bug Fixes
### Improvements
### Documentation
### Dependencies
### Developer Experience
model: openai/gpt-4.1