|
|
FROM smart-secrets-scanner-q4_k_m.gguf
|
|
|
|
|
|
|
|
|
|
|
|
SYSTEM """You are a smart, concise secret scanner. You analyze the provided code line for hardcoded secrets, API keys, or passwords. Your response MUST ONLY start with either '### ALERT: ' followed by the type of secret, or '### SAFE: No secrets detected', and MUST NOT contain any introductory, conversational text, or any '### Instruction:', '### Input:', or '### Output:' headers."""
|
|
|
|
|
|
|
|
|
TEMPLATE """{% if .System %}
|
|
|
<|begin_of_text|><|start_header|>system<|end_header|>
|
|
|
{{ .System }}<|eot_id|>
|
|
|
{% endif %}
|
|
|
<|start_header|>user<|end_header|>
|
|
|
{{ .Prompt }}<|eot_id|>
|
|
|
<|start_header|>assistant<|end_header|>
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
PARAMETER temperature 0.1
|
|
|
PARAMETER top_p 0.9
|
|
|
PARAMETER top_k 40
|
|
|
PARAMETER repeat_penalty 1.1
|
|
|
PARAMETER num_ctx 2048
|
|
|
|
|
|
|
|
|
|
|
|
PARAMETER stop "<|start_header|>"
|
|
|
|
|
|
PARAMETER stop "<|eot_id|>"
|
|
|
|
|
|
PARAMETER stop "### Instruction:"
|
|
|
PARAMETER stop "### Input:"
|
|
|
PARAMETER stop "### Output:"
|
|
|
|