Add optional icon url to config
This commit is contained in:
parent
0246ee9be5
commit
cc96cd9c01
2 changed files with 2 additions and 1 deletions
|
@ -29,4 +29,5 @@ base_url = "http://ollama:11434/api" # this is the default if you're running vi
|
||||||
owner = 421698654189912064
|
owner = 421698654189912064
|
||||||
allowed_models = ["*"]
|
allowed_models = ["*"]
|
||||||
base_url = "http://example.com/api"
|
base_url = "http://example.com/api"
|
||||||
|
icon_url = "http://example.com/favicon.png"
|
||||||
|
|
||||||
|
|
|
@ -197,7 +197,7 @@ class Ollama(commands.Cog):
|
||||||
value=">>> " + textwrap.shorten(query, width=1020, placeholder="..."),
|
value=">>> " + textwrap.shorten(query, width=1020, placeholder="..."),
|
||||||
inline=False
|
inline=False
|
||||||
)
|
)
|
||||||
embed.set_footer(text="Using server %r" % server)
|
embed.set_footer(text="Using server %r" % server, icon_url=server_config.get("icon_url"))
|
||||||
view = OllamaView(ctx)
|
view = OllamaView(ctx)
|
||||||
try:
|
try:
|
||||||
await ctx.edit(embed=embed, view=view)
|
await ctx.edit(embed=embed, view=view)
|
||||||
|
|
Loading…
Reference in a new issue