mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 11:28:29 +02:00
chat: multi-message prompting, system message, copy button, temp setting
This commit is contained in:
parent
8ba6005c67
commit
4bd2390c1d
4 changed files with 84 additions and 10 deletions
|
@ -245,8 +245,10 @@ post '/site_files/chat' do
|
|||
|
||||
body = {
|
||||
model: "claude-3-haiku-20240307",
|
||||
messages: [{role: "user", content: params[:message]}],
|
||||
system: params[:system],
|
||||
messages: JSON.parse(params[:messages]),
|
||||
max_tokens: 4096,
|
||||
temperature: 0.5,
|
||||
stream: true
|
||||
}.to_json
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue