Title: Hugging Face Problem
Last modified: April 20, 2024

---

# Hugging Face Problem

 *  Resolved [abulu](https://wordpress.org/support/users/abulu/)
 * (@abulu)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/hugging-face-problem/)
 * Hi,
 * With huggingface models (any model) I get a same error message.
 * From HuggingFace: {“error”:”You need to specify either `text` or `text_target`.”,”
   warnings”:[“There was an inference error: You need to specify either `text` or`
   text_target`.”]}
 * All models same error.
 * Plugin is works without any problem using OpenAI.
 * How can I fix this?
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/hugging-face-problem/#post-17701015)
 * Hi,
 * Unfortunately, it really depends on the model. For me, it’s working perfectly
   with Nous-Hermes-2-Mixtral-8x7B-DPO, but it doesn’t work for gemma-7b, for example.
   I don’t get the error messages you got, they are actually quite odd and don’t
   really make sense since Hugging Face is supposed to use the same API as OpenAI;
   I think everything they do on the API-side is unfortunately extremely beta still.
 * I suggest you try to get in touch with them to get more information about those
   errors. I would love to work with them better; I tried to contact them but they
   never replied.
 *  Thread Starter [abulu](https://wordpress.org/support/users/abulu/)
 * (@abulu)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/hugging-face-problem/#post-17701987)
 * Thank you for your reply, sir.
 *  [Blurazor](https://wordpress.org/support/users/blurazor/)
 * (@blurazor)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/hugging-face-problem/#post-17812828)
 * Hi, I am getting the error “AI Engine: No environment found for type (Array) 
   when using Hugging Face model: Nous-Hermes-2-Mixtral-8x7B-DPO (or any models 
   from Hugging Face for that matter).
   May I know if I have missed out on some settings?
   I have followed the instruction to retrieve the API_URL, which in this case is“
   [https://api-inference.huggingface.co/models/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO&#8221](https://api-inference.huggingface.co/models/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO&#8221);.
   Is this correct?Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hugging Face Problem’ is closed to new replies.

 * ![](https://ps.w.org/ai-engine/assets/icon-256x256.png?rev=3431928)
 * [AI Engine - The Chatbot, AI Framework & MCP for WordPress](https://wordpress.org/plugins/ai-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-engine/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Blurazor](https://wordpress.org/support/users/blurazor/)
 * Last activity: [1 year, 12 months ago](https://wordpress.org/support/topic/hugging-face-problem/#post-17812828)
 * Status: resolved