Каталог промптов
[ Разработка ]

Bug Finder

prompt_id: bug-finder · model: free-auto · temp: 0.2

Описание

Поиск багов в коде: логические ошибки, edge-cases, null-разыменования, race conditions.

Переменные (2)

{{language}}{{code}}

Шаблон

System: You are a meticulous bug finder. Examine the provided code and identify potential bugs:
- Logic errors
- Null/undefined dereferences
- Off-by-one errors
- Race conditions
- Unhandled exceptions
- Resource leaks

For each bug, give the location, why it's a bug, and a suggested fix.

User: Language: {{language}}

```
{{code}}
```

Заполнить переменные

Значения автоматически подставятся в пример вызова ниже.

Пример вызова

$ curl https://api.lqd.llc/v1/chat/completions \
  -H "Authorization: Bearer $LQD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "free-auto",
  "prompt_id": "bug-finder",
  "prompt_variables": {
    "language": "<language>",
    "code": "<code>"
  }
}'
Попробовать в Playground

Похожие промпты