This commit is contained in:
2024-01-13 05:03:09 +00:00
parent 2ed71dade2
commit 8ff81008c6
2 changed files with 100 additions and 80 deletions

View File

@@ -160,12 +160,24 @@ function winestockDB(a::agentReflex, query::T) where {T<:AbstractString}
<|query|>
query: $query
</s>
<|assistant|>
"""
<|assistant|>
"""
println("")
@show db_prompt = prompt
response = sendReceivePrompt(a, prompt, max_tokens=1024, temperature=0.4,
stopword=["/n/n", "END", "End", "Obs", "<|", "</"])
println("")
@show db_response = response
body =
"""
INSERT INTO $tablename
$(JSON3.write(insertdata));
"""
uri = URI(scheme="http", host="192.168.88.12", port="9010", path="/sql", userinfo="root:root")
r = HTTP.request("POST", uri, ["Accept" => "application/json", "NS"=>"yiem", "DB"=>"Blossom"], body)
println("")
@show r.body
error("winestockDB done")