]> git.cworth.org Git - zombocom-ai/commit
Limit generated filename to something not crazy
authorCarl Worth <cworth@cworth.org>
Wed, 7 Dec 2022 19:58:07 +0000 (11:58 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Dec 2022 20:01:09 +0000 (12:01 -0800)
commit512d567c92efb82f14f6611739994992ecc1b9a5
tree6f8576534ee0bd9d4ec94b9c88e198228ac8c1e5
parentc46a4bbefdaa08f2724146c4fd7e93532bbdffac
Limit generated filename to something not crazy

Since otherwise, with a crazy-long prompt, we could exceed the limit
of the filesystem, (which I think is 255 characters for what I'm using
for the server currently). In this commit, we don't use more than 200
characters from the prompt itself, to which we could add 10 from the
seed and another handful for separators and a file extension, so that
should be good.
generate-image.py