Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Move OpenAI Base URL option to credentials #12175

Conversation

RicardoE105
Copy link
Contributor

@RicardoE105 RicardoE105 commented Dec 12, 2024

Summary

Prep work to be able to offer free AI credits and also harmonization as we usually have Base URLs in the credentials and not in the node itself.

Removes the Base URL parameters from the OpenAI nodes and uses the new Base URL parameters in the OpenAI credentials. I added versioning so this change should only affect the new version and keep "old" nodes using the Base URL from the node parameters working.

Only downside it's that we won't be able to show the notice here, since there is no way to reference a value from credentials in the displayOptions. Right?

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/ADO-2887/[n8n-nodes]-move-openai-base-url-option-to-credentials

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@RicardoE105 RicardoE105 changed the title Move OpenAI Base URL option to credentials refactor: Move OpenAI Base URL option to credentials Dec 12, 2024
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels Dec 12, 2024
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...beddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.ts 0.00% 2 Missing ⚠️
...chain/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.ts 0.00% 2 Missing ⚠️
...dors/OpenAi/actions/assistant/message.operation.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link

cypress bot commented Dec 16, 2024

n8n    Run #8342

Run Properties:  status check passed Passed #8342  •  git commit b6db7e59ff: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 RicardoE105 🗃️ e2e/*
Project n8n
Branch Review ado-2887-n8n-nodes-move-openai-base-url-option-to-credentials
Run status status check passed Passed #8342
Run duration 04m 41s
Commit git commit b6db7e59ff: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 RicardoE105 🗃️ e2e/*
Committer Ricardo Espinoza
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 480
View all changes introduced in this branch ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@RicardoE105 RicardoE105 merged commit 4d8e9cf into master Dec 17, 2024
38 checks passed
@RicardoE105 RicardoE105 deleted the ado-2887-n8n-nodes-move-openai-base-url-option-to-credentials branch December 17, 2024 14:12
@janober
Copy link
Member

janober commented Dec 19, 2024

Got released with n8n@1.73.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants