File tree Expand file tree Collapse file tree 6 files changed +12
-6
lines changed Expand file tree Collapse file tree 6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,15 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
44
55## [ 3.0.1] - 07-16-2024
66
7+ ### Changed
8+
9+ - updated modelizer to version [ 3.0.11] ( https://github.com/A-Baji/discordAI-modelizer/releases/tag/3.0.11 )
10+ - slash command error output is more descriptive
11+
712### Fixed
813
914- log downloading for non linux operating systems
15+ - bug where empty prompts would print "** " when bold was true
1016
1117
1218## [ 3.0.0] - 07-12-2024
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ async def chatgpt(
7777 f"Failed to generate valid response with parameters: { params } \n Error: { error } "
7878 )
7979 await context .send (
80- f"Failed to generate valid response with paramaters: { params } \n Error: { error } " [
80+ f"Failed to generate valid response with paramaters: { params } \n Exception: { type ( error ). __name__ } \ n Error: { error } " [
8181 :2000
8282 ]
8383 )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ async def customai(
7777 f"Failed to generate valid response with parameters: { params } \n Error: { error } "
7878 )
7979 await context .send (
80- f"Failed to generate valid response with paramaters: { params } \n Error: { error } " [
80+ f"Failed to generate valid response with paramaters: { params } \n Exception: { type ( error ). __name__ } \ n Error: { error } " [
8181 :2000
8282 ]
8383 )
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ async def openai(
7373 )
7474 print (f"Failed to generate image with parameters: { prompt } \n Error: { error } " )
7575 await context .send (
76- f"Failed to generate image with parameters: { prompt } \n Error: { error } " [
76+ f"Failed to generate image with parameters: { prompt } \n Exception: { type ( error ). __name__ } \ n Error: { error } " [
7777 :2000
7878 ]
7979 )
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ async def openai(
6868 f"Failed to generate valid response with parameters: { params } \n Error: { error } "
6969 )
7070 await context .send (
71- f"Failed to generate valid response with paramaters: { params } \n Error: { error } " [
71+ f"Failed to generate valid response with paramaters: { params } \n Exception: { type ( error ). __name__ } \ n Error: { error } " [
7272 :2000
7373 ]
7474 )
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ async def {command_name}(
6767 echo=False,
6868 stop="." if stop else None,
6969 )
70- prompt = f"**{{prompt}}**" if bold else prompt
70+ prompt = f"**{{prompt}}**" if bold and prompt else prompt
7171 emojied_response = re.sub(
7272 r":(\\ w+):",
7373 lambda match: replace_emoji(match.group(1), context.bot.emoji_map),
@@ -155,7 +155,7 @@ def gen_new_command(
155155 stop_default = stop_default ,
156156 bold_default = bold_default ,
157157 class_name = command_name .capitalize (),
158- error = 'f"Failed to generate valid response with parameters: {params}\\ nError: {error}"' ,
158+ error = 'f"Failed to generate valid response with parameters: {params}\\ nException: {type(error).__name__} \\ nError: {error}"' ,
159159 )
160160 )
161161 print (
You can’t perform that action at this time.
0 commit comments