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

Let ChatQnA support authorized LLM service. #1273

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Yugar-1
Copy link

@Yugar-1 Yugar-1 commented Feb 8, 2025

Description

The summary of the proposed changes as long as the relevant motivation and context.

Let ChatQnA support authorized LLM service.

Issues

List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.

Fix: opea-project/GenAIExamples#1453

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

List the newly introduced 3rd party dependency if exists.

Tests

Describe the tests that you ran to verify your changes.

Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
comps/cores/mega/orchestrator.py 91.21% <100.00%> (+0.03%) ⬆️

Copy link
Contributor

@eero-t eero-t left a comment

Choose a reason for hiding this comment

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

If bearer token is not specified, I think it would be more robust to skip sending it, rather than sending an invalid (EMPTY) one.

Authorization RFC recommends transmitting bearer token only over secured connection: https://datatracker.ietf.org/doc/html/rfc6750#section-5.3

So maybe this should check the connection protocol and given an error, if bearer token is given over unsecured connection?

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.

[Bug] ChatQnA cannot support authorized LLM service
3 participants