zeta: Onboarding and title bar banner (#23797)
Release Notes: - N/A --------- Co-authored-by: Danilo Leal <daniloleal09@gmail.com> Co-authored-by: Danilo <danilo@zed.dev> Co-authored-by: João Marcos <joao@zed.dev>
This commit is contained in:
co-authored by
Danilo Leal
Danilo
João Marcos
parent
4ab372d6b5
commit
e23e03592b
@@ -447,7 +447,7 @@ async fn predict_edits(
|
||||
));
|
||||
}
|
||||
|
||||
let sample_input_output = claims.is_staff && rand::random::<f32>() < 0.1;
|
||||
let should_sample = claims.is_staff || params.can_collect_data;
|
||||
|
||||
let api_url = state
|
||||
.config
|
||||
@@ -541,7 +541,7 @@ async fn predict_edits(
|
||||
let output = choice.text.clone();
|
||||
|
||||
async move {
|
||||
let properties = if sample_input_output {
|
||||
let properties = if should_sample {
|
||||
json!({
|
||||
"model": model.to_string(),
|
||||
"headers": response.headers,
|
||||
|
||||
Reference in New Issue
Block a user