-
Notifications
You must be signed in to change notification settings - Fork 747
feat(integrations): deprecate openai autolog integration for openai >= 1.0 #7033
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7033 +/- ##
==========================================
- Coverage 78.89% 77.68% -1.21%
==========================================
Files 488 488
Lines 52401 52410 +9
==========================================
- Hits 41341 40716 -625
- Misses 10745 11383 +638
+ Partials 315 311 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
Looks like this fails a precommit check. There's a generated file wandb_internal.rs
that needs to be updated:
wandb/client/src/wandb_internal.rs
Lines 891 to 924 in 929ec40
#[allow(clippy::derive_partial_eq_without_eq)] | |
#[derive(Clone, PartialEq, ::prost::Message)] | |
pub struct Deprecated { | |
/// wandb.keras.WandbCallback(data_type=...) called | |
#[prost(bool, tag = "1")] | |
pub keras_callback_data_type: bool, | |
/// wandb.run.mode called | |
#[prost(bool, tag = "2")] | |
8000 pub run_mode: bool, | |
/// wandb.run.save() called without arguments | |
#[prost(bool, tag = "3")] | |
pub run_save_no_args: bool, | |
/// wandb.run.join() called | |
#[prost(bool, tag = "4")] | |
pub run_join: bool, | |
/// wandb.plots.* called | |
#[prost(bool, tag = "5")] | |
pub plots: bool, | |
/// wandb.run.log(sync=...) called | |
#[prost(bool, tag = "6")] | |
pub run_log_sync: bool, | |
/// wandb.init(config_include_keys=...) called | |
#[prost(bool, tag = "7")] | |
pub init_config_include_keys: bool, | |
/// wandb.init(config_exclude_keys=...) called | |
#[prost(bool, tag = "8")] | |
pub init_config_exclude_keys: bool, | |
/// wandb.keras.WandbCallback(save_model=True) called | |
#[prost(bool, tag = "9")] | |
pub keras_callback_save_model: bool, | |
/// wandb.integration.langchain.WandbTracer called | |
#[prost(bool, tag = "10")] | |
pub langchain_tracer: bool, | |
} |
This is the diff that's suggested:
@@ -921,6 +921,9 @@ pub struct Deprecated {
/// wandb.integration.langchain.WandbTracer called
#[prost(bool, tag = "10")]
pub langchain_tracer: bool,
+ /// wandb.integration.openai.autolog
+ #[prost(bool, tag = "11")]
+ pub openai_autolog: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
@ayulockin - It's odd that the pre-commit is not failing locally; maybe you don't have some Rust tool installed. We should fix that on the SDK team... In the meantime, I think you have to make the change manually, since the check is failing in CI. |
Oops, I edited your comment by accident... |
Description
What does the PR do?
This PR adds a deprecation warning for the OpenAI autolog integration for
openai
>= 1.0.It also kills the program when the
openai
>= 1.0 with a user friendly error message.Testing
How was this PR tested?