if-ai / ComfyUI-IF_AI_tools

ComfyUI-IF_AI_tools is a set of custom nodes for ComfyUI that allows you to generate prompts using a local Large Language Model (LLM) via Ollama. This tool enables you to enhance your image generation workflow by leveraging the power of language models.
https://ko-fi.com/impactframes
366 stars 27 forks source link

Image to Prompt Issue with OpenAI and Claude models #12

Closed cywale closed 2 months ago

cywale commented 2 months ago

Hi,

I'm trying to use the IF_ImageToPrompt node to analyze images, and both openai gp4 vision and claude3 options are not generating any prompts.

I have exported the api keys properly and the IF_PromptToPrompt is working fine, so the api key is good.

I've also tested with the comfyui_llmvision module, and claude3 and gpt4vision are working with that also.

The IF_ImageToPrompt note just displays the characters: 'E', 'x', and 'c' on the Question, Response and Negative outputs respectively. Here's a screenshot of the output:

Screen Shot 2024-04-13 at 18 59 58

I get the error Exception occurred: 'IFImagePrompt' object has no attribute 'openai_api_key' on the backend

Screen Shot 2024-04-13 at 18 53 03

please assist.

if-ai commented 2 months ago

Oh sorry I updated the node now, I did fix this last time and somehow did not update the correct file, should be working now please update and recreate the node if necessary