Skip to content

Commit

Permalink
Merge pull request #54 from A-Baji/dev
Browse files Browse the repository at this point in the history
3.0.1 prep
  • Loading branch information
A-Baji authored Jul 16, 2024
2 parents 9354240 + 5057f49 commit c7e00bb
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 8 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

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

## [3.0.0] - 07-xx-2024
## [3.0.1] - 07-16-2024

### Changed

- updated modelizer to version [3.0.11](https://github.com/A-Baji/discordAI-modelizer/releases/tag/3.0.11)
- slash command error output is more descriptive

### Fixed

- log downloading for non linux operating systems
- bug where empty prompts would print "**" when bold was true


## [3.0.0] - 07-12-2024

### Added

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

- modified readme

[3.0.1]: https://github.com/A-Baji/discordAI/compare/3.0.0...3.0.1
[3.0.0]: https://github.com/A-Baji/discordAI/compare/2.0.1...3.0.0
[2.0.1]: https://github.com/A-Baji/discordAI/compare/1.3.2...2.0.1
[2.0.0]: https://github.com/A-Baji/discordAI/compare/1.3.2...2.0.0
Expand Down
2 changes: 1 addition & 1 deletion discordai/bot/cogs/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def chatgpt(
f"Failed to generate valid response with parameters: {params}\nError: {error}"
)
await context.send(
f"Failed to generate valid response with paramaters: {params}\nError: {error}"[
f"Failed to generate valid response with paramaters: {params}\nException: {type(error).__name__}\nError: {error}"[
:2000
]
)
Expand Down
2 changes: 1 addition & 1 deletion discordai/bot/cogs/customai.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def customai(
f"Failed to generate valid response with parameters: {params}\nError: {error}"
)
await context.send(
f"Failed to generate valid response with paramaters: {params}\nError: {error}"[
f"Failed to generate valid response with paramaters: {params}\nException: {type(error).__name__}\nError: {error}"[
:2000
]
)
Expand Down
2 changes: 1 addition & 1 deletion discordai/bot/cogs/imageai.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def openai(
)
print(f"Failed to generate image with parameters: {prompt}\nError: {error}")
await context.send(
f"Failed to generate image with parameters: {prompt}\nError: {error}"[
f"Failed to generate image with parameters: {prompt}\nException: {type(error).__name__}\nError: {error}"[
:2000
]
)
Expand Down
2 changes: 1 addition & 1 deletion discordai/bot/cogs/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async def openai(
f"Failed to generate valid response with parameters: {params}\nError: {error}"
)
await context.send(
f"Failed to generate valid response with paramaters: {params}\nError: {error}"[
f"Failed to generate valid response with paramaters: {params}\nException: {type(error).__name__}\nError: {error}"[
:2000
]
)
Expand Down
4 changes: 2 additions & 2 deletions discordai/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def {command_name}(
echo=False,
stop="." if stop else None,
)
prompt = f"**{{prompt}}**" if bold else prompt
prompt = f"**{{prompt}}**" if bold and prompt else prompt
emojied_response = re.sub(
r":(\\w+):",
lambda match: replace_emoji(match.group(1), context.bot.emoji_map),
Expand Down Expand Up @@ -155,7 +155,7 @@ def gen_new_command(
stop_default=stop_default,
bold_default=bold_default,
class_name=command_name.capitalize(),
error='f"Failed to generate valid response with parameters: {params}\\nError: {error}"',
error='f"Failed to generate valid response with parameters: {params}\\nException: {type(error).__name__}\\nError: {error}"',
)
)
print(
Expand Down
2 changes: 1 addition & 1 deletion discordai/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.0"
__version__ = "3.0.1"

0 comments on commit c7e00bb

Please sign in to comment.