Thank you, I really do appreciate that very much! :)
I'm glad to hear that it has been very useful for you; that's what keeps the light on for me to keep working.
That would for sure be a cool thing to implement for more advanced uses like yours - So what you're suggesting is to provide each window's ID and/or message ID as a custom entry in the JSON body, or just in the prompt message itself?
Like:
{
"prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are a highly skilled professional translator.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n### Instruction:\nTranslate %source% to %target%.\n\n### Input:\\n%text%。\n\n### Response\n<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",
"max_new_tokens": 256,
"temperature": 0,
"top_p": 1,
"do_sample": false,
"window_id": "%window_id%"
}
or
{
"prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\nYou are a highly skilled professional translator.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nWindow: %window_id% ### Instruction:\nTranslate %source% to %target%.\n\n### Input:\\n%text%。\n\n### Response\n<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n",
"max_new_tokens": 256,
"temperature": 0,
"top_p": 1,
"do_sample": false
}
Not sure if the first option is even possible, but it'd be a bit cleaner maybe.
I do agree with the whole idea of a separate panel though, I think it is something that should exist in the app, especially since the text removal algorithm isn't always reliable (and uses extra processing power..!).
Sorry for the very slow reply, I've been extremely busy. Thank you for your valuable feedback! :)