Skip to content

[BUG] Incorrect API key validation error when creating a new OLLAMA model #1945

@gauravshinde1729

Description

@gauravshinde1729

📋 Prerequisites

  • I have searched the existing issues to avoid creating a duplicate
  • By submitting this issue, you agree to follow our Code of Conduct
  • I am using the latest version of the software
  • I have tried to clear cache/cookies or used incognito mode (if ui-related)
  • I can consistently reproduce this issue

🎯 Affected Service(s)

UI Service

🚦 Impact/Severity

Minor inconvenience

🐛 Bug Description

  • When I selected OLLAMA as model , while creating new model , I am getting validation error that "Please fill in all required fields and correct any errors."
  • I checked by locally running ui & cluster that which fields are required even though I have filled all required fields, the on console I got the error message in validation map that "API key is required for new models (except for Ollama or when you don't need an API key)"
  • I checked the I have selected OLLAMA model only , still I am getting this error.
  • Also validation message propagated on UI is also wrong.
Image

🔄 Steps To Reproduce

  1. Go to "/models/new"
  2. Try to create new model by selecting ollama as provider.
  3. Select ollama model (e.g. llama2)
  4. Click Create Model. You will get message that "Please fill in all required fields and correct any errors."

🤔 Expected Behavior

  • Validation message is wrong , we should not get this validation message as for ollama api key is not required.
  • Also validation message propagated on UI is also wrong.

📱 Actual Behavior

  • Getting wrong validation message on UI , hence not able to create the model.
Image

💻 Environment

No response

🔧 CLI Bug Report

No response

🔍 Additional Context

No response

📋 Logs

📷 Screenshots

No response

🙋 Are you willing to contribute?

  • I am willing to submit a PR to fix this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions