Skip to content

Commit 13b534a

Browse files
committed
fix resolving path
1 parent 20d02c8 commit 13b534a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llms/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4564,7 +4564,7 @@ async def start_background_tasks(app):
45644564
return ExitCode.FAILED
45654565
chat = g_config["defaults"][template]
45664566
if cli_args.chat is not None:
4567-
chat_path = os.path.join(os.path.dirname(__file__), cli_args.chat)
4567+
chat_path = os.path.abspath(cli_args.chat)
45684568
if not os.path.exists(chat_path):
45694569
print(f"Chat request template not found: {chat_path}")
45704570
return ExitCode.FAILED

0 commit comments

Comments
 (0)