diff --git a/README.md b/README.md index 6be94e2..408843f 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,13 @@ UniversalLLMNodeは、OpenAI・Anthropic(Claude)・Google Gemini・Groq・Mi 1. **provider** で利用したいLLMサービス(openai, anthropic, google, groq, mistral)を選択します。 2. **model** で利用したいモデル名を選択します(リストから選択)。 -3. **prompt** にシーンやタグなど、画像生成に使いたい内容を入力します。 -4. **max_tokens** で返答の最大トークン数を指定します(通常は300程度で十分です)。 -5. ノードを実行すると、各社LLM APIを使ってSDXL用の高品質なプロンプトが自動生成されます。 +3. **api_key** に各サービスのAPIキーを直接入力します(.envファイルは不要です)。 + ※ ComfyUI標準UIではAPIキーは非表示になりませんのでご注意ください。 +4. **prompt** にシーンやタグなど、画像生成に使いたい内容を入力します。 +5. **max_tokens** で返答の最大トークン数を指定します(通常は300程度で十分です)。 +6. ノードを実行すると、各社LLM APIを使ってSDXL用の高品質なプロンプトが自動生成されます。 -> ※ providerごとに利用できるモデル名は異なります。APIキーの設定も忘れずに行ってください。 +> ※ providerごとに利用できるモデル名は異なります。APIキーはUI上で直接入力してください。 ## What is this? @@ -26,8 +28,10 @@ It is ideal for automatically generating high-quality SDXL prompts for image gen 1. Select the **provider** (openai, anthropic, google, groq, mistral) you want to use. 2. Choose the **model** from the list of available models for the selected provider. -3. Enter your scene description or tags in the **prompt** field. -4. Set **max_tokens** to limit the maximum number of tokens in the response (300 is usually enough). -5. Run the node. It will use the selected LLM API to automatically generate a high-quality SDXL prompt. +3. Enter your **api_key** for the selected service directly in the UI (no .env file needed). + *Note: The API key will be visible in the UI due to ComfyUI limitations.* +4. Enter your scene description or tags in the **prompt** field. +5. Set **max_tokens** to limit the maximum number of tokens in the response (300 is usually enough). +6. Run the node. It will use the selected LLM API to automatically generate a high-quality SDXL prompt. -> *Note: Available models depend on the provider. Make sure to set your API keys for each service.* \ No newline at end of file +> *Note: Available models depend on the provider. Enter your API key directly in the UI. The key will not be hidden in the standard ComfyUI interface.* \ No newline at end of file diff --git a/Workflow_pic.png b/Workflow_pic.png index b512272..b64c5c8 100644 Binary files a/Workflow_pic.png and b/Workflow_pic.png differ