use yaml instead of yml
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"pipelines": {
|
"pipelines": {
|
||||||
"xiaozhan": {
|
"xiaozhan": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"config_file": "configs/pipelines/xiaozhan.yml",
|
"config_file": "configs/pipelines/xiaozhan.yaml",
|
||||||
"graph_id": "routing",
|
"graph_id": "routing",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"llm_name": "qwen-plus"
|
"llm_name": "qwen-plus"
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"blueberry": {
|
"blueberry": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"config_file": "configs/pipelines/blueberry.yml",
|
"config_file": "configs/pipelines/blueberry.yaml",
|
||||||
"graph_id": "react",
|
"graph_id": "react",
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"llm_name": "qwen-plus"
|
"llm_name": "qwen-plus"
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class Evaluator:
|
|||||||
|
|
||||||
df_m.to_csv(metric_f)
|
df_m.to_csv(metric_f)
|
||||||
|
|
||||||
self.config.save_config(f"{head_path}-{n_exp}.yml")
|
self.config.save_config(f"{head_path}-{n_exp}.yaml")
|
||||||
|
|
||||||
def format_result_df(self, df:pd.DataFrame):
|
def format_result_df(self, df:pd.DataFrame):
|
||||||
|
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ async def create_pipeline(body: PipelineCreateRequest):
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
config_file = f"configs/pipelines/{pipeline_id}.yml"
|
config_file = f"configs/pipelines/{pipeline_id}.yaml"
|
||||||
config_abs_dir = osp.join(_PROJECT_ROOT, "configs", "pipelines")
|
config_abs_dir = osp.join(_PROJECT_ROOT, "configs", "pipelines")
|
||||||
try:
|
try:
|
||||||
build_fn(
|
build_fn(
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ def opt_to_config(save_path: str, *nargs):
|
|||||||
def _build_and_load_pipeline_config(
|
def _build_and_load_pipeline_config(
|
||||||
pipeline_id: str, pipeline_config_dir: str, cmd: List[str]
|
pipeline_id: str, pipeline_config_dir: str, cmd: List[str]
|
||||||
):
|
):
|
||||||
save_config_f = osp.join(pipeline_config_dir, f"{pipeline_id}.yml")
|
save_config_f = osp.join(pipeline_config_dir, f"{pipeline_id}.yaml")
|
||||||
opt_to_config(save_config_f, *cmd)
|
opt_to_config(save_config_f, *cmd)
|
||||||
|
|
||||||
# TODO: think if returning the built pipeline is better or just the config obj for front_api
|
# TODO: think if returning the built pipeline is better or just the config obj for front_api
|
||||||
|
|||||||
Reference in New Issue
Block a user