Skip to content

Commit 2caf3b2

Browse files
author
kevin
committed
feat(error_registry): restore explicit URLs in solution messages
1 parent accf4a9 commit 2caf3b2

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

dashscope/common/error_registry.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,9 @@ def format_message(self, substitutions: Dict[str, str] = None) -> str:
200200
cause="",
201201
solution=(
202202
"Set the DASHSCOPE_API_KEY environment variable or pass a "
203-
"valid api_key to AgenticRL(). You can obtain an API key "
204-
"through the DashScope console."
203+
"valid api_key to AgenticRL(). You can obtain an API key at "
204+
"https://modelstudio.console.alibabacloud.com/cn-beijing"
205+
"?tab=api."
205206
),
206207
)
207208

@@ -554,7 +555,9 @@ def format_message(self, substitutions: Dict[str, str] = None) -> str:
554555
solution=(
555556
"An unexpected AgenticRL error occurred. Check the error "
556557
"message and logs for details. If the issue persists, "
557-
"submit a bug report to the DashScope SDK team."
558+
"submit a bug report at "
559+
"https://github.com/dashscope/"
560+
"dashscope-sdk-python/issues."
558561
),
559562
)
560563

@@ -568,7 +571,9 @@ def format_message(self, substitutions: Dict[str, str] = None) -> str:
568571
solution=(
569572
"An unexpected runtime error occurred. Check the error "
570573
"message and traceback for details. If the issue persists, "
571-
"submit a bug report to the DashScope SDK team."
574+
"submit a bug report at "
575+
"https://github.com/dashscope/"
576+
"dashscope-sdk-python/issues."
572577
),
573578
)
574579

@@ -622,7 +627,9 @@ def format_message(self, substitutions: Dict[str, str] = None) -> str:
622627
cause="",
623628
solution=(
624629
"Retry the streaming request. If the error persists, "
625-
"report it to the DashScope SDK team."
630+
"report it at "
631+
"https://github.com/dashscope/"
632+
"dashscope-sdk-python/issues."
626633
),
627634
)
628635

0 commit comments

Comments
 (0)