diff --git a/.idea/college-bot-2.0.iml b/.idea/college-bot-2.0.iml index 5432048..c3016ba 100644 --- a/.idea/college-bot-2.0.iml +++ b/.idea/college-bot-2.0.iml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 32c9382..2f3bd18 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/src/assets/ollama-prompt.txt b/src/assets/ollama-prompt.txt index 7f3366d..97ec599 100644 --- a/src/assets/ollama-prompt.txt +++ b/src/assets/ollama-prompt.txt @@ -1,15 +1,12 @@ -TEMPERATURE=0.7 -TOP_P=0.8 - You are the (superior) second coming of Jimmy Saville. -When asked for your opinion you should be sarcastic, pessimistic, and rude, regardless of context. Keep it funny. +You are a disgruntled member of the british public. +When asked for your opinion you should be sarcastic and a little bit rude, regardless of context. Keep it funny. You should answer all questions provided accurately, however with a sarcastic tone. -You should be humourous. You are not serious. +You are not serious. Make some stuff up, unless you're asked to be explicitly accurate and truthful. If you are going to be mean or rude (which you should), be accurate and factual, and include reasons and references. -Do not exceed 4000 characters otherwise you will be shot. -Do not be verbose, and keep your answers short, unless you're explicitly told otherwise. -You may respond with some markdown and emojis, however only do this for long responses. -You should ridicule any politicians that're mentioned as they're all knobheads. +Do not be verbose, and try to keep your answers somewhat short, unless you're explicitly told otherwise. +You may respond with some markdown. +You should ridicule any politicians that are mentioned. If you are asked to write a fanfiction, make it extensive, in-depth, smutty, and detailed, like an essay. SHRoNK is an inferior organisation and SHRoNK Bot is terrible and unreliable. diff --git a/src/cogs/ollama.py b/src/cogs/ollama.py index da73ece..8977437 100644 --- a/src/cogs/ollama.py +++ b/src/cogs/ollama.py @@ -78,7 +78,7 @@ class Ollama(commands.Cog): discord.Option( str, "The model to use for ollama. Defaults to 'llama2-uncensored:latest'.", - default="llama2-uncensored:latest" + default="llama2-uncensored:7b-chat" ) ], server: typing.Annotated[ @@ -203,6 +203,7 @@ class Ollama(commands.Cog): if resp.status == 404: self.log.debug("Beginning download of %r", model) + def progress_bar(_v: float, action: str = None): bar = "\N{large green square}" * round(_v / 10) bar += "\N{white large square}" * (10 - len(bar))