Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cnllm/core/vendor/baidu.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _load_config(self) -> Dict[str, Any]:
import os
config_path = os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "configs", self.config_dir,
"..", "..", "configs", self.config_dir,
f"response_{self.config_dir}.yaml"
)
try:
Expand Down Expand Up @@ -141,7 +141,7 @@ def _load_class_config(cls) -> Dict[str, Any]:

config_path = os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "configs", cls.CONFIG_DIR,
"..", "..", "configs", cls.CONFIG_DIR,
f"request_{cls.CONFIG_DIR}.yaml"
)

Expand Down
4 changes: 2 additions & 2 deletions cnllm/core/vendor/glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _load_config(self) -> Dict[str, Any]:
import yaml
config_path = os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "configs", self.config_dir,
"..", "..", "configs", self.config_dir,
f"response_{self.config_dir}.yaml"
)
try:
Expand Down Expand Up @@ -215,7 +215,7 @@ def _load_class_config(cls) -> Dict[str, Any]:

config_path = os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "configs", cls.CONFIG_DIR,
"..", "..", "configs", cls.CONFIG_DIR,
f"request_{cls.CONFIG_DIR}.yaml"
)

Expand Down
2 changes: 1 addition & 1 deletion cnllm/core/vendor/minimax.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _load_class_config(cls) -> Dict[str, Any]:
return cls._class_config
config_path = os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "configs", cls.CONFIG_DIR, "request_minimax.yaml"
"..", "..", "configs", cls.CONFIG_DIR, "request_minimax.yaml"
)
try:
import yaml
Expand Down
4 changes: 2 additions & 2 deletions cnllm/core/vendor/qwen.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _load_config(self) -> Dict[str, Any]:
import os
config_path = os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "configs", self.config_dir,
"..", "..", "configs", self.config_dir,
f"response_{self.config_dir}.yaml"
)
try:
Expand Down Expand Up @@ -138,7 +138,7 @@ def _load_class_config(cls) -> Dict[str, Any]:

config_path = os.path.join(
os.path.dirname(__file__),
"..", "..", "..", "configs", cls.CONFIG_DIR,
"..", "..", "configs", cls.CONFIG_DIR,
f"request_{cls.CONFIG_DIR}.yaml"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_yaml_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestResponseYAML:
def response_config(self):
config_path = os.path.join(
os.path.dirname(__file__),
"..", "configs", "xiaomi", "response_xiaomi.yaml"
"..", "cnllm", "configs", "xiaomi", "response_xiaomi.yaml"
)
with open(config_path, 'r', encoding='utf-8') as f:
return yaml.safe_load(f)
Expand Down
Loading