diff --git a/plugins/tiddlywiki/ai-tools/globals.tid b/plugins/tiddlywiki/ai-tools/globals.tid index b3d2fc550..87f18cfbc 100644 --- a/plugins/tiddlywiki/ai-tools/globals.tid +++ b/plugins/tiddlywiki/ai-tools/globals.tid @@ -47,7 +47,7 @@ completionServer - Optional URL of server <$action-log/> <$action-sendmessage $message="tm-http-request" - url={{{ [get[url]addsuffix[/v1/chat/completions]] }}} + url={{{ [get[url]] }}} body=<> header-content-type="application/json" bearer-auth-token-from-store="openai-secret-key" diff --git a/plugins/tiddlywiki/ai-tools/servers/local-llamafile.tid b/plugins/tiddlywiki/ai-tools/servers/local-llamafile.tid index 4348507d6..7ab2b11fb 100644 --- a/plugins/tiddlywiki/ai-tools/servers/local-llamafile.tid +++ b/plugins/tiddlywiki/ai-tools/servers/local-llamafile.tid @@ -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 diff --git a/plugins/tiddlywiki/ai-tools/servers/openai.tid b/plugins/tiddlywiki/ai-tools/servers/openai.tid index ae9c19a03..c1bef5a7d 100644 --- a/plugins/tiddlywiki/ai-tools/servers/openai.tid +++ b/plugins/tiddlywiki/ai-tools/servers/openai.tid @@ -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