karafra / ai-art

Discord bot generating images from given query
https://karafra.github.io/ai-art/
Apache License 2.0
75 stars 33 forks source link

Command "/ai-story story" is missing and "/ai-story open-ai" doesn't work. #41

Open rowanfreeman opened 1 year ago

rowanfreeman commented 1 year ago

I successfully deployed the app using docker-compose -f "docker/deploy/docker-compose.yml" up -d.

In my .env, I have added OPEN_API_TOKEN = '[redacted]' which contains a valid API key from Open AI.

However, the command to run /ai-story story doesn't show up.

image

If I use /ai-story open-ai Give me a poem instead, I get the following error in my logs.

2023-01-24 16:52:06 [Nest] 32  - 01/24/2023, 5:52:06 AM   DEBUG [OpenAiCommand] /ai-story open-ai command called
2023-01-24 16:52:07 [Nest] 32  - 01/24/2023, 5:52:07 AM   DEBUG [AiStoryService] Generating Give me a poem in style text-davinci-002
2023-01-24 16:52:07 [Nest] 32  - 01/24/2023, 5:52:07 AM   ERROR [OpenAiCommand] Open-ai command failed with exception: Could not generate art "Give me a poem" based on AiStoryService in style "text-davinci-002"

The only command that reliably works is /ai-art wombo-dream.

rowanfreeman commented 1 year ago

Would it have anything to do with the fact that the Open AI token in config.yml is ...?

Abhidcruez commented 1 year ago

@rowanfreeman Are able to deploy the bot are you getting npm error