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:
parent
0037935af5
commit
3bdd449b3e
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user