update
This commit is contained in:
@@ -411,6 +411,7 @@ function jsoncorrection(a::T1, input::T2,
|
||||
Corrention:
|
||||
"""
|
||||
|
||||
# apply LLM specific instruct format
|
||||
externalService = a.config[:externalservice][:text2textinstruct]
|
||||
llminfo = externalService[:llminfo]
|
||||
prompt =
|
||||
@@ -437,9 +438,9 @@ function jsoncorrection(a::T1, input::T2,
|
||||
:kwargs=> Dict(
|
||||
:max_tokens=> 512,
|
||||
:stop=> ["<|eot_id|>"],
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
result = GeneralUtils.sendReceiveMqttMsg(outgoingMsg)
|
||||
incorrectjson = result[:response][:text]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user