Open shtrih opened 1 year ago
Please could peple review it, and owner implement it? it really sounds AMAZING! :)
tested on Windows 10, but got an error with the new command extension:
2023/03/26 22:33:24 Current DB version: 0, required DB version: 8
2023/03/26 22:33:24 Running migration 1 'create generation table'
2023/03/26 22:33:24 Running migration 2 'add generation interaction index'
2023/03/26 22:33:24 Running migration 3 'add generation message index'
2023/03/26 22:33:24 Running migration 4 'add hires firstpass columns'
2023/03/26 22:33:24 Running migration 5 'drop hires firstpass columns'
2023/03/26 22:33:24 Running migration 6 'add hires resize columns'
2023/03/26 22:33:24 Running migration 7 'create default settings table'
2023/03/26 22:33:24 Running migration 8 'create statistics table'
2023/03/26 22:33:25 Adding command 'imagine'...
2023/03/26 22:33:25 Logged in as: Tinman#1566
2023/03/26 22:33:25 Adding command 'imagine_ext'...
2023/03/26 22:33:25 Error creating 'imagine_ext' command: HTTP 400 Bad Request, {"code": 50035, "errors": {"options": {"8": {"choices": {"_errors": [{"code": "BASE_TYPE_MAX_LENGTH", "message": "Must be 25 or fewer in length."}]}}}}, "message": "Invalid Form Body"}
2023/03/26 22:33:25 Error creating Discord bot: HTTP 400 Bad Request, {"code": 50035, "errors": {"options": {"8": {"choices": {"_errors": [{"code": "BASE_TYPE_MAX_LENGTH", "message": "Must be 25 or fewer in length."}]}}}}, "message": "Invalid Form Body"}
@pyr0ball Hello.
Running migration 8 'create statistics table'
Looks like your code is not from this PR branch. Code in this branch is not affected by mentioned error.
I assume that you've changed the code and those changes cause the error. According to Discord API docs your command options choices array length must be fewer than 25.
@shtrih thanks for that! Got it built properly and I'm testing it out now
@shtrih thanks for that! Got it built properly and I'm testing it out now.
I'm getting an error:
2023/03/27 09:31:11 Processing imagine #1089949752461885510: a snowy peak surrounded by forest
2023/03/27 09:31:11 Unexpected API response: {"detail":"Method Not Allowed"}
2023/03/27 09:31:11 Error processing image: unexpected end of JSON input
It doesn't seem to matter whether I use the /imagine or /imagine_ext, nor which parameters I use
Edit: Switched back to the original bot and having the same problem, so it must be something my end. I'll let you know what I find
Edit2: Sorted! And it works!
2023/03/27 09:43:20 Aspect ratio overwrite: []string{" --ar 16:9", "16", "9"}
2023/03/27 09:43:20 New dimensions: width: 912, height: 512
2023/03/27 09:43:20 Processing imagine #1089952810319233116: a snowy peak surrounded by mountains in the style of an oil painting
2023/03/27 09:44:10 Seeds: [2232895631 2232895632 2232895633 2232895634] Subseeds:[1254794245 1254794246 1254794247 1254794248]
@shtrih how difficult would it be to implement a command to query available checkpoints, textual inversions, and loras for use in prompts? I would assume adding another ext command for changing the checkpoint would be pretty similar to what you've already written, but I'm not sure how to go about adding a query for the bot interface like that.
Added command
imagine_ext
with extended set of options: