mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-14 13:47:09 +00:00
* (improvement)(Headless) fix python llm proxy sqlWeight npe --------- Co-authored-by: jolunoluo
This commit is contained in:
@@ -113,6 +113,9 @@ public class OutputFormat {
|
||||
|
||||
public static Map<String, LLMSqlResp> buildSqlRespMap(List<Map<String, String>> sqlExamples,
|
||||
Map<String, Double> sqlMap) {
|
||||
if (sqlMap == null) {
|
||||
return new HashMap<>();
|
||||
}
|
||||
return sqlMap.entrySet().stream()
|
||||
.collect(Collectors.toMap(
|
||||
Map.Entry::getKey,
|
||||
|
||||
Reference in New Issue
Block a user