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:
parent
4ab372d6b5
commit
e23e03592b
35 changed files with 1207 additions and 249 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue