update
This commit is contained in:
+9
-8
@@ -810,7 +810,7 @@ function extractWineAttributes_1(a::T1, input::T2; maxattempt=10
|
||||
responsedict[k] = _v
|
||||
end
|
||||
|
||||
println("\n--- extractWineAttributes_1-1()")
|
||||
@info "YiemAgent extractWineAttributes_1() " @__LINE__
|
||||
@show responsedict
|
||||
@info "---\n" @__LINE__
|
||||
|
||||
@@ -832,9 +832,11 @@ function extractWineAttributes_1(a::T1, input::T2; maxattempt=10
|
||||
end
|
||||
|
||||
result = result[1:end-2] # remove the ending ", "
|
||||
println("\n--- extractWineAttributes_1-2()")
|
||||
|
||||
@info "YiemAgent extractWineAttributes_1() " @__LINE__
|
||||
@show result
|
||||
@info "---\n" @__LINE__
|
||||
|
||||
return result
|
||||
end
|
||||
error("extractWineAttributes_1() failed to get a response")
|
||||
@@ -987,9 +989,6 @@ function extractWineAttributes_2(a::T1, input::T2)::String where {T1<:agent, T2<
|
||||
for attempt in 1:10
|
||||
response = a.context.text2textInstructLLM(a.id, msg)
|
||||
response = GeneralUtils.clean_json_response(response)
|
||||
println("\n--- extractWineAttributes_2-1()")
|
||||
println(response)
|
||||
println("--- \n")
|
||||
|
||||
response = GeneralUtils.remove_french_accents(response)
|
||||
think, response = GeneralUtils.extractthink(response)
|
||||
@@ -1027,9 +1026,11 @@ function extractWineAttributes_2(a::T1, input::T2)::String where {T1<:agent, T2<
|
||||
end
|
||||
end
|
||||
result = result[1:end-2] # remove the ending ", "
|
||||
println("\n--- extractWineAttributes_2-2()")
|
||||
println(result)
|
||||
println("--- \n")
|
||||
|
||||
@info "YiemAgent extractWineAttributes_2() " @__LINE__
|
||||
@show result
|
||||
@info "---\n" @__LINE__
|
||||
|
||||
return result
|
||||
end
|
||||
error("extractWineAttributes_2() failed to get a response")
|
||||
|
||||
Reference in New Issue
Block a user