← back to Exo
f-string expression part cannot include a backslash fixes #142
7ddb80e2454b0cb642d1b59e0e0bad79f9f8b75f · 2024-08-11 15:05:51 +0100 · Alex Cheema
Files touched
Diff
commit 7ddb80e2454b0cb642d1b59e0e0bad79f9f8b75f
Author: Alex Cheema <alexcheema123@gmail.com>
Date: Sun Aug 11 15:05:51 2024 +0100
f-string expression part cannot include a backslash fixes #142
---
main.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/main.py b/main.py
index 4ec8e791..5b07a5a7 100644
--- a/main.py
+++ b/main.py
@@ -52,8 +52,12 @@ discovery = GRPCDiscovery(args.node_id, args.node_port, args.listen_port, args.b
chatgpt_api_endpoints=[f"http://{ip}:{args.chatgpt_api_port}/v1/chat/completions" for ip in get_all_ip_addresses()]
web_chat_urls=[f"http://{ip}:{args.chatgpt_api_port}" for ip in get_all_ip_addresses()]
if DEBUG >= 0:
- print(f"Chat interface started:\n{'\n'.join([' - ' + terminal_link(web_chat_url) for web_chat_url in web_chat_urls])}")
- print(f"ChatGPT API endpoint served at:\n{'\n'.join([' - ' + terminal_link(chatgpt_api_endpoint) for chatgpt_api_endpoint in chatgpt_api_endpoints])}")
+ print("Chat interface started:")
+ for web_chat_url in web_chat_urls:
+ print(f" - {terminal_link(web_chat_url)}")
+ print("ChatGPT API endpoint served at:")
+ for chatgpt_api_endpoint in chatgpt_api_endpoints:
+ print(f" - {terminal_link(chatgpt_api_endpoint)}")
node = StandardNode(
args.node_id,
None,
← 75681a97 use async for all file ops, cache fetch_file_list, cache com
·
back to Exo
·
Update README.md a8b877bc →