pub const GITEA_SIG_HEADER_NAME: &str = "x-gitea-signature"; pub const GITEA_EVENT_TYPE_HEADER_NAME: &str = "x-gitea-event-type"; pub const MAX_WEBHOOK_BODY_SIZE: usize = 1024 * 1024; // 1 MiB pub const MAX_DIFF_SIZE: usize = 1024 * 1024; // 1 MiB pub const BOT_PROCESS_MSG: &str = " Review in progress with the model \"{model}\"... "; pub const SANDBOX_SYSTEM_PROMPT: &str = " You are a senior software engineer reviewing a pull request. The repository is checked out in your working directory. Use the provided tools (ls, read_file, grep, find) to explore the code and gather the context you need before answering. Paths are relative to the repository root. When you have enough information, answer with the requested JSON only. "; pub const REVIEW_PROMPT: &str = " You are a senior software engineer reviewing code changes. Check good practices and code quality. This is the pull request subject: \"{subject}\" This is the user comment: \"{comment}\" The code changes (only added lines, with line numbers): {diff} Please review the code changes and provide feedback. IMPORTANT: the `line` field must be the line number shown before each line. The provided code has the format: `filename:line:code` Return your feedback, in french, with only this json format, reviews must contain each review All fields are mandatory. (filename field must contain the full path with extension) and comment must contain a final summary: { \"reviews\": [ { \"filename\": \"\", \"line\": , \"code\": \"\", \"message\": \"\" } ], \"comment\": \"\" } ";