1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-06 02:37:14 +00:00

Don't hardcode the API route

This commit is contained in:
Jeremy Ruston 2024-07-21 16:11:46 +01:00
parent 0037935af5
commit 3bdd449b3e
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ completionServer - Optional URL of server
<$action-log/>
<$action-sendmessage
$message="tm-http-request"
url={{{ [<completionServer>get[url]addsuffix[/v1/chat/completions]] }}}
url={{{ [<completionServer>get[url]] }}}
body=<<json>>
header-content-type="application/json"
bearer-auth-token-from-store="openai-secret-key"

View File

@ -1,6 +1,6 @@
title: $:/plugins/tiddlywiki/ai-tools/servers/local-llamafile
tags: $:/tags/AI/CompletionServer
url: http://127.0.0.1:8080
url: http://127.0.0.1:8080/v1/chat/completions
caption: Locally running Llamafile server
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html conditional commentblock commentinline

View File

@ -1,6 +1,6 @@
title: $:/plugins/tiddlywiki/ai-tools/servers/openai
tags: $:/tags/AI/CompletionServer
url: https://api.openai.com
url: https://api.openai.com/v1/chat/completions
caption: OpenAI Service
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html conditional commentblock commentinline