-
Notifications
You must be signed in to change notification settings - Fork 258
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(2654): process secret in config #2656
Conversation
src/cli/generator/config.rs
Outdated
output, | ||
schema: self.schema, | ||
preset: self.preset, | ||
secret, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Secrets need to be used in the LLM. Read my message — #2658
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i raised pull request for this #2660
src/cli/generator/config.rs
Outdated
@@ -23,6 +23,8 @@ pub struct Config<Status = UnResolved> { | |||
#[serde(skip_serializing_if = "Option::is_none")] | |||
pub preset: Option<PresetConfig>, | |||
pub schema: Schema, | |||
#[serde(skip_serializing_if = "Option::is_none")] | |||
pub secret: Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to abstract this out using a NewType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
created new Secret type now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using String
use
struct TemplateString(Mustache);
Implement it's serde so that you can simply plug and play TemplateString at the time of deserialization instead of introducing an additional step.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2656 +/- ##
==========================================
- Coverage 86.48% 85.91% -0.57%
==========================================
Files 252 252
Lines 24291 24331 +40
==========================================
- Hits 21009 20905 -104
- Misses 3282 3426 +144 ☔ View full report in Codecov by Sentry. |
Moving to draft to reduce noise and improve CI efficiency. Once you are ready just mark it as "ready to review". Feel free to give a shoutout on the #contributors channel on Discord if you want immediate attention. |
…/tailcall into feat/add-secret-to-config
Summary:
Briefly describe the changes made in this PR.
Issue Reference(s):
Fixes #2654
/claim #2654
Build & Testing:
cargo test
successfully../lint.sh --mode=fix
to fix all linting issues raised by./lint.sh --mode=check
.Checklist:
<type>(<optional scope>): <title>