diff --git a/api/core/tools/provider/builtin/dalle/tools/dalle3.py b/api/core/tools/provider/builtin/dalle/tools/dalle3.py index 45a289ddf8c80f..61609947faf40b 100644 --- a/api/core/tools/provider/builtin/dalle/tools/dalle3.py +++ b/api/core/tools/provider/builtin/dalle/tools/dalle3.py @@ -54,9 +54,6 @@ def _invoke(self, style = tool_parameters.get('style', 'vivid') if style not in ['natural', 'vivid']: return self.create_text_message('Invalid style') - # set extra body - seed_id = tool_parameters.get('seed_id', self._generate_random_id(8)) - extra_body = {'seed': seed_id} # call openapi dalle3 response = client.images.generate( @@ -64,7 +61,6 @@ def _invoke(self, model='dall-e-3', size=size, n=n, - extra_body=extra_body, style=style, quality=quality, response_format='b64_json' @@ -76,8 +72,6 @@ def _invoke(self, result.append(self.create_blob_message(blob=b64decode(image.b64_json), meta={'mime_type': 'image/png'}, save_as=self.VARIABLE_KEY.IMAGE.value)) - result.append(self.create_text_message(f'\nGenerate image source to Seed ID: {seed_id}')) - return result @staticmethod diff --git a/api/core/tools/provider/builtin/dalle/tools/dalle3.yaml b/api/core/tools/provider/builtin/dalle/tools/dalle3.yaml index b07a17212e9b63..7ba5c56889c7e4 100644 --- a/api/core/tools/provider/builtin/dalle/tools/dalle3.yaml +++ b/api/core/tools/provider/builtin/dalle/tools/dalle3.yaml @@ -29,19 +29,6 @@ parameters: pt_BR: Image prompt, you can check the official documentation of DallE 3 llm_description: Image prompt of DallE 3, you should describe the image you want to generate as a list of words as possible as detailed form: llm - - name: seed_id - type: string - required: false - label: - en_US: Seed ID - zh_Hans: 种子ID - pt_BR: ID da semente - human_description: - en_US: Image generation seed ID to ensure consistency of series generated images - zh_Hans: 图像生成种子ID,确保系列生成图像的一致性 - pt_BR: ID de semente de geração de imagem para garantir a consistência das imagens geradas em série - llm_description: If the user requests image consistency, extract the seed ID from the user's question or context.The seed id consists of an 8-bit string containing uppercase and lowercase letters and numbers - form: llm - name: size type: select required: true