feat(model): Support yi proxy LLM (#1303)

This commit is contained in:
Fangyin Cheng
2024-03-15 22:15:37 +08:00
committed by GitHub
parent 6974329116
commit 130ffb08c9
144 changed files with 1286 additions and 1088 deletions

View File

@@ -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}

View File

@@ -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)