Skip to content

CreateModelEngineReactor does not store the TAG if provided #2875

Description

@IRooc

Is there an existing issue for this?

  • I confirm that I have not found an existing or similar issue.

How to reproduce the issue

  1. create a new Model with "embeddings" capability
  2. the TAG is prefilled with "embeddings"
  3. Save the new model

Expected Result

Tag is added in the database and shown in the UI as a tag

Actual Results

It is not added with the "embeddings" tag

Additional Context

Reported this as a UI bug initially but after investigation the code of CreateModelEngineReactor.java does not store the tag only the description (line 173) with updateEngineMetadata if provided

Pixel example being called example (with tag provided)

CreateModelEngine(model = ["test"], modelDetails = [{
            "NAME": "test",
            "TAG": "embeddings",
            "MODEL_TYPE": "BEDROCK",
            "MODEL_BRAND": "BEDROCK",
            "MODEL": "amazon.nova-2-multimodal-embeddings-v1:0",
            "VAR_NAME": "myModel",
            "AWS_REGION": "us-east-1",
            "AWS_ACCESS_KEY": "test",
            "AWS_SECRET_KEY": "test",
            "KEEP_INPUT_OUTPUT": "true",
            "KEEP_CONVERSATION_HISTORY": "true",
            "INIT_MODEL_ENGINE": "import genai_client;${VAR_NAME} = genai_client.BedrockEmbedder(modelId = '${MODEL}', region='${AWS_REGION}', access_key = '${AWS_ACCESS_KEY}', secret_key = '${AWS_SECRET_KEY}')"
        }
    ])

Requirements or Tasks

No response

Have you reproduced the issue with at least the latest released version?

  • Yes

I have checked my terminal/console and have included relevant text here?

  • Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions