knilink / tamperpilot

Copilot hack for running local copilot without auth and proxying
MIT License
1 stars 0 forks source link

what is stop argument #1

Open kokangit opened 1 week ago

kokangit commented 1 week ago

Thanks for this tool, really helpful! Can you please elaborate on the --stop argument. What is it used?

knilink commented 1 week ago

it's a token sequences to tell when to stop generating completions-create-stop

can be useful with some models, such as codegemma that uses special stop token <|file_separator|> which may unexpectedly included in the completion result like age = current_year - birth_year <|file_separator|>.

basically you can just omit --stop args and use built-in stop until you came across with situation like above.