Logging to file / about dialog, youtube transcripts are downloaded on the right folder, fixed Ollama not running sometimes

This commit is contained in:
jeffser
2024-07-29 01:35:07 -06:00
parent 7c26956cd4
commit c0f8825f83
4 changed files with 17 additions and 6 deletions

View File

@@ -575,7 +575,6 @@ Generate a title following these rules:
current_model = current_model.replace(' (', ':').replace(' ', '-')[:-1].lower()
data = {"model": current_model, "prompt": prompt, "stream": False}
if 'images' in message: data["images"] = message['images']
print(current_model)
response = connection_handler.simple_post(f"{connection_handler.url}/api/generate", data=json.dumps(data))
new_chat_name = json.loads(response.text)["response"].strip().removeprefix("Title: ").removeprefix("title: ").strip('\'"').title()