mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-17 07:00:15 +00:00
feat(model): Support yi proxy LLM (#1303)
This commit is contained in:
@@ -63,7 +63,7 @@ class CSVKnowledge(Knowledge):
|
||||
)
|
||||
except KeyError:
|
||||
raise ValueError(
|
||||
f"Source column '{self._source_column}' not found in CSV "
|
||||
f"Source column '{self._source_column}' not in CSV "
|
||||
f"file."
|
||||
)
|
||||
metadata = {"source": source, "row": i}
|
||||
|
@@ -99,7 +99,7 @@ def _parse_table_summary(
|
||||
index_keys = []
|
||||
for index_key in conn.get_indexes(table_name):
|
||||
key_str = ", ".join(index_key["column_names"])
|
||||
index_keys.append(f"{index_key['name']}(`{key_str}`) ")
|
||||
index_keys.append(f"{index_key['name']}(`{key_str}`) ") # noqa
|
||||
table_str = summary_template.format(table_name=table_name, columns=column_str)
|
||||
if len(index_keys) > 0:
|
||||
index_key_str = ", ".join(index_keys)
|
||||
|
Reference in New Issue
Block a user