From 166b286d42c7f7bb94e6fa71701c4a58e7e8df0f Mon Sep 17 00:00:00 2001 From: milo Date: Wed, 7 May 2025 17:20:34 -0400 Subject: [PATCH] Bot can how reply when using the "!chat" command then prompting it. The .env file points to an ollama instance, the ai.py file has the model being used. --- .env | 2 +- __pycache__/ai.cpython-310.pyc | Bin 0 -> 738 bytes ai.py | 25 +++++++++++++++++++++++++ bot.py | 9 +++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 __pycache__/ai.cpython-310.pyc create mode 100644 ai.py diff --git a/.env b/.env index 93137f0..ceff269 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ DISCORD_TOKEN=MTM2OTc3NDY4OTYzNDg4MTU4Ng.G9Nrgz.akHoOO9SrXCDwiOCI3BUXfdR4bpSNb9zrVx9UI -OLLAMA_API_URL=https://your-ollama-api-url.com/v1/models/your-model-name/generate +OLLAMA_API_URL=http://192.168.1.100:11434/api/generate diff --git a/__pycache__/ai.cpython-310.pyc b/__pycache__/ai.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..25c35616ddc9a62adc2593631dca83622e3445c3 GIT binary patch literal 738 zcmYjPL2DC16rMLbyV)d7M9>~oWbx!)yeg%L!B!MvD=kG#w}fqGtXp?8>&&EWmPCa1 z>d{jb(xd;xi+^CQp86LA(Ko4u4$SxX-n=*OdoxeAS`C8h{?FU*zEDDbIdXM*NS@%< zj}SQFkdxkpg&rWMIW4@N2Sj+s1QBM8duPz|Iph8b=>;4%NgSMGHd%|oHglQsK9@!e z4|?tOZnyKY)9<``(cjwW4!}kIUp`tV?I~`3g1}*d<+%6Nn?iNZkbN+80-SxOQ#zsh z9{1l~`o>ZZF1&-6el9_>n# zq}hXVY_DPcewy_!yK|qX?;uc0fkN