Skip to content

Commit c7e00bb

Browse files
authored
Merge pull request #54 from A-Baji/dev
3.0.1 prep
2 parents 9354240 + 5057f49 commit c7e00bb

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,20 @@
22

33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
44

5-
## [3.0.0] - 07-xx-2024
5+
## [3.0.1] - 07-16-2024
6+
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+
12+
### Fixed
13+
14+
- log downloading for non linux operating systems
15+
- bug where empty prompts would print "**" when bold was true
16+
17+
18+
## [3.0.0] - 07-12-2024
619

720
### Added
821

@@ -106,6 +119,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
106119

107120
- modified readme
108121

122+
[3.0.1]: https://github.com/A-Baji/discordAI/compare/3.0.0...3.0.1
109123
[3.0.0]: https://github.com/A-Baji/discordAI/compare/2.0.1...3.0.0
110124
[2.0.1]: https://github.com/A-Baji/discordAI/compare/1.3.2...2.0.1
111125
[2.0.0]: https://github.com/A-Baji/discordAI/compare/1.3.2...2.0.0

discordai/bot/cogs/chatgpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def chatgpt(
7777
f"Failed to generate valid response with parameters: {params}\nError: {error}"
7878
)
7979
await context.send(
80-
f"Failed to generate valid response with paramaters: {params}\nError: {error}"[
80+
f"Failed to generate valid response with paramaters: {params}\nException: {type(error).__name__}\nError: {error}"[
8181
:2000
8282
]
8383
)

discordai/bot/cogs/customai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def customai(
7777
f"Failed to generate valid response with parameters: {params}\nError: {error}"
7878
)
7979
await context.send(
80-
f"Failed to generate valid response with paramaters: {params}\nError: {error}"[
80+
f"Failed to generate valid response with paramaters: {params}\nException: {type(error).__name__}\nError: {error}"[
8181
:2000
8282
]
8383
)

discordai/bot/cogs/imageai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def openai(
7373
)
7474
print(f"Failed to generate image with parameters: {prompt}\nError: {error}")
7575
await context.send(
76-
f"Failed to generate image with parameters: {prompt}\nError: {error}"[
76+
f"Failed to generate image with parameters: {prompt}\nException: {type(error).__name__}\nError: {error}"[
7777
:2000
7878
]
7979
)

discordai/bot/cogs/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def openai(
6868
f"Failed to generate valid response with parameters: {params}\nError: {error}"
6969
)
7070
await context.send(
71-
f"Failed to generate valid response with paramaters: {params}\nError: {error}"[
71+
f"Failed to generate valid response with paramaters: {params}\nException: {type(error).__name__}\nError: {error}"[
7272
:2000
7373
]
7474
)

discordai/template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(

discordai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.0"
1+
__version__ = "3.0.1"

0 commit comments

Comments
 (0)