mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-09 15:26:33 +00:00
Don't hardcode the API route
This commit is contained in:
parent
0037935af5
commit
3bdd449b3e
@ -47,7 +47,7 @@ completionServer - Optional URL of server
|
|||||||
<$action-log/>
|
<$action-log/>
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
$message="tm-http-request"
|
$message="tm-http-request"
|
||||||
url={{{ [<completionServer>get[url]addsuffix[/v1/chat/completions]] }}}
|
url={{{ [<completionServer>get[url]] }}}
|
||||||
body=<<json>>
|
body=<<json>>
|
||||||
header-content-type="application/json"
|
header-content-type="application/json"
|
||||||
bearer-auth-token-from-store="openai-secret-key"
|
bearer-auth-token-from-store="openai-secret-key"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
title: $:/plugins/tiddlywiki/ai-tools/servers/local-llamafile
|
title: $:/plugins/tiddlywiki/ai-tools/servers/local-llamafile
|
||||||
tags: $:/tags/AI/CompletionServer
|
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
|
caption: Locally running Llamafile server
|
||||||
|
|
||||||
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html conditional commentblock commentinline
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html conditional commentblock commentinline
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
title: $:/plugins/tiddlywiki/ai-tools/servers/openai
|
title: $:/plugins/tiddlywiki/ai-tools/servers/openai
|
||||||
tags: $:/tags/AI/CompletionServer
|
tags: $:/tags/AI/CompletionServer
|
||||||
url: https://api.openai.com
|
url: https://api.openai.com/v1/chat/completions
|
||||||
caption: OpenAI Service
|
caption: OpenAI Service
|
||||||
|
|
||||||
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html conditional commentblock commentinline
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline html conditional commentblock commentinline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user