Skip to content

Commit

Permalink
feat:suno 作曲
Browse files Browse the repository at this point in the history
  • Loading branch information
fanxuankai committed Jun 3, 2024
1 parent a57ea1e commit 6f77d22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/suno/config.json.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enabled": true,
"server": "http://suno-api:8000"
"server": "http://suno-api:8000",
"mv": "chirp-v3-5",
"prompt": "",
"make_instrumental": false,
Expand Down
4 changes: 2 additions & 2 deletions plugins/suno/suno.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def on_handle_context(self, e_context: EventContext):
enabled = self.config.get("enabled")
if content.startswith(plugin_prefix) and enabled:
content = content.replace(plugin_prefix, "", 1)
ids = self.request_suno(content)
ids = self.request_suno(content.strip())
reply = Reply()
reply.type = ReplyType.TEXT
e_context["reply"] = reply
Expand Down Expand Up @@ -77,4 +77,4 @@ def request_suno(self, content):

def get_help_text(self, **kwargs):
plugin_prefix = self.config.get("prefix")
return f"输入{plugin_prefix},我会为您作曲"
return f"输入{plugin_prefix} 赫本的风,我会为您作曲"

0 comments on commit 6f77d22

Please sign in to comment.