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

Mark system_prompt config as not usable #2013

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

onmete
Copy link
Contributor

@onmete onmete commented Dec 5, 2024

Description

Mark system_prompt config as not usable

Type of change

  • Refactor

@openshift-ci openshift-ci bot requested review from bparees and tisnik December 5, 2024 10:31
Copy link

openshift-ci bot commented Dec 5, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign xrajesh for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.45%. Comparing base (34b1c90) to head (d520d2d).
Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
ols/app/models/config.py 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2013      +/-   ##
==========================================
- Coverage   96.95%   93.45%   -3.51%     
==========================================
  Files          69       69              
  Lines        2891     2886       -5     
==========================================
- Hits         2803     2697     -106     
- Misses         88      189     +101     
Files with missing lines Coverage Δ
ols/app/models/config.py 98.31% <50.00%> (-0.15%) ⬇️

... and 7 files with indirect coverage changes

Copy link

openshift-ci bot commented Dec 5, 2024

@onmete: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/integration d520d2d link true /test integration

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@@ -995,6 +995,13 @@ def __init__(
self.user_data_collection = UserDataCollection(
**data.get("user_data_collection", {})
)

if self.system_prompt is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably I missed discussion around this.. But if it is not used, should not we just remove this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is needed for upstream.

Copy link
Contributor

@asamal4 asamal4 Dec 5, 2024

Choose a reason for hiding this comment

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

As this is part of yaml config (one time setup done by admin) even in upstream, I am not sure why only file can not be used..
Example:
We set api key through a file.. we don't use a property to provide key directly..
I know prompt & keys are not exactly same in terms of security concern but just for comparison..

Copy link
Contributor

Choose a reason for hiding this comment

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

@onmete hmm I was thinking about making it object attribute instead of class attribute. Would it be more clear then?

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.

4 participants