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

feat(rag-ai): allow specifying custom openai url #1700

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

pc-bob
Copy link
Contributor

@pc-bob pc-bob commented Oct 25, 2024

Addresses #1469

Makes the baseURL for OpenAi configurable to allow use of a self-hosted OpenAI endpoint.

Verified functionality using a self-hosted OpenAI URL:

rag-ai.mov

✔️ Checklist

  • Added tests for new functionality and regression tests for bug fixes
    • Config-only change, don't believe tests are necessary
  • Added changeset (run yarn changeset in the root)
  • Screenshots of before and after attached (for UI changes)
  • Added or updated documentation (if applicable)

@pc-bob pc-bob requested a review from a team as a code owner October 25, 2024 22:33
openAIApiKey: 'sk-123...'
openAiApiKey: 'sk-123...'

# (Optional) Specify URL of self-hosted OpenAI compliant endpoint. Defaults to OpenAI's public API https://api.openai.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please mention what the default state is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this not sufficient? Defaults to OpenAI's public API https://api.openai.com

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry. Somehow i missed that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry. Somehow i missed that.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries!

@pc-bob pc-bob requested a review from punkle October 28, 2024 16:03
@pc-bob
Copy link
Contributor Author

pc-bob commented Oct 28, 2024

@punkle anything else needed to get this merged?

@punkle punkle merged commit c798624 into RoadieHQ:main Oct 30, 2024
2 checks passed
@pc-bob pc-bob deleted the BL/custom-openai-url branch October 30, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants