https://discord.gg/botpress logo
AI Task - Error: All models are down
# 🤝help
c
I am building a bot and facing a strange issue. I am using an AI task which gives the following error in console:
Copy code
Cognitive - AI Task failed: Error: Error from cognitive servicesError: All models are down: openai:gpt-4o-mini-2024-07-18, openai:gpt-4o-2024-11-20, google-ai:models/gemini-2.0-flash, openai:gpt-4o-mini-2024-07-18, google-ai:models/gemini-2.0-flash
 [Error, Error from cognitive servicesError: All models are down: openai:gpt-4o-mini-2024-07-18, openai:gpt-4o-2024-11-20, google-ai:models/gemini-2.0-flash, openai:gpt-4o-mini-2024-07-18, google-ai:models/gemini-2.0-flash]
{ input: '"Texas "',
  response: 
   { success: false,
     error: 'Error: All models are down: openai:gpt-4o-mini-2024-07-18, openai:gpt-4o-2024-11-20, google-ai:models/gemini-2.0-flash, openai:gpt-4o-mini-2024-07-18, google-ai:models/gemini-2.0-flash' } }
{"scope":"dm"}
Is it an internal system error or something to do with how I am using the AI task?
cc @prehistoric-airplane-85682
p
Can you show how you are using your Ai Task?
c
This happens only when I use 2.0 version. I was using 2.0 because I wanted to handle failure, changing to 1.0 fixed the issue. https://cdn.discordapp.com/attachments/1381520137794097192/1382773976261988452/image.png?ex=684c601e&is=684b0e9e&hm=63fa1020f6cecd4813f40848e30895fa051c6d385e53175b97cc7fcb67e0df92&
p
Oh perfect, Glad you found your issue!