Skip to content

Commit

Permalink
fix "I NEED to test how the tool works ..."
Browse files Browse the repository at this point in the history
  • Loading branch information
matatonic committed Mar 27, 2024
1 parent f66fbb9 commit a27229b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions images.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ async def generations(request: GenerationsRequest):
# https://platform.openai.com/docs/guides/images/prompting
if not request.prompt.startswith("I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS:"):
request.prompt = revised_prompt = await OpenDallePrompt(request.prompt)
else:
request.prompt = request.prompt[len("I NEED to test how the tool works with extremely simple prompts. DO NOT add any detail, just use it AS-IS:"):]

req = rg.create_request(request.prompt, int(width), int(height), request.n)
print(req)
Expand Down

0 comments on commit a27229b

Please sign in to comment.