first version: dvm that provides users to block from reports of input pubkeys

This commit is contained in:
Believethehype
2024-04-02 18:24:49 +02:00
parent 1f4f7cd5ac
commit dfd79bfe59
5 changed files with 257 additions and 16 deletions

View File

@@ -108,8 +108,9 @@ class SummarizationUnleashedChat(DVMTaskInterface):
for model in client.models.list():
print('- ' + model.id)
text = re.sub(r'^https?:\/\/.*[\r\n]*', '', str(options["prompt"]), flags=re.MULTILINE)
content = "Summarize the following notes: " + str(options["prompt"])[:3500]
content = "Summarize the following notes: " + text[:3500]
normal_stream = client.chat.completions.create(
messages=[
{