update
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user