mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Fix ollama command IP shtuff
This commit is contained in:
parent
e64aff7c0c
commit
b90f138758
1 changed files with 1 additions and 1 deletions
|
@ -1805,7 +1805,7 @@ class OtherCog(commands.Cog):
|
||||||
model = "orca-mini"
|
model = "orca-mini"
|
||||||
|
|
||||||
msg = await ctx.reply(f"Preparing {model!r} <a:loading:1101463077586735174>")
|
msg = await ctx.reply(f"Preparing {model!r} <a:loading:1101463077586735174>")
|
||||||
async with httpx.AsyncClient(base_url="http://localhost:11434/api") as client:
|
async with httpx.AsyncClient(base_url="http://192.168.0.90:11434/api") as client:
|
||||||
# get models
|
# get models
|
||||||
try:
|
try:
|
||||||
response = await client.post("/show", json={"name": model})
|
response = await client.post("/show", json={"name": model})
|
||||||
|
|
Loading…
Reference in a new issue