Skip to content

fix: show API key field for Ollama providers and pass apiKey to createOllama#4685

Open
sathia27 wants to merge 1 commit into
Dokploy:canaryfrom
sathia27:fix/ollama-cloud-api-key
Open

fix: show API key field for Ollama providers and pass apiKey to createOllama#4685
sathia27 wants to merge 1 commit into
Dokploy:canaryfrom
sathia27:fix/ollama-cloud-api-key

Conversation

@sathia27

Copy link
Copy Markdown

What is this PR about?

This PR fixes the AI provider configuration for Ollama Cloud and other authenticated Ollama endpoints. Previously, the API key input was hidden whenever the provider URL was detected as Ollama, preventing users from entering credentials. The backend also never forwarded the stored API key to createOllama. This change renders the API key field unconditionally and passes the key to the Ollama provider.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.

Issues related (if applicable)

closes #4684

Screenshots (if applicable)

Before fix

old-behavior

After fix

post-change test-ai-feature

@sathia27 sathia27 requested a review from Siumauricio as a code owner June 22, 2026 17:11
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: show API key field for Ollama Cloud and pass apiKey to provider

1 participant