update
This commit is contained in:
@@ -406,6 +406,16 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
|
||||
|
||||
try
|
||||
response = a.text2textInstructLLM(prompt)
|
||||
|
||||
# check wheter all attributes are in the response
|
||||
for word in attributes
|
||||
if !occursin(word, response)
|
||||
noise = String(rand('a':'z', 5))
|
||||
errornote = "Background noise $noise"
|
||||
error("$word attribute is missing")
|
||||
end
|
||||
end
|
||||
|
||||
responsedict = GeneralUtils.textToDict(response, attributes, rightmarker=":", symbolkey=true)
|
||||
|
||||
for i ∈ attributes
|
||||
|
||||
Reference in New Issue
Block a user