Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions crates/zeta/src/sweep_ai.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::{Context as _, Result};
use anyhow::Result;
use cloud_llm_client::predict_edits_v3::Event;
use futures::AsyncReadExt as _;
use gpui::{
Expand All @@ -17,7 +17,6 @@ use std::{
sync::Arc,
time::Instant,
};
use util::ResultExt as _;

use crate::{EditPrediction, EditPredictionId, EditPredictionInputs};

Expand All @@ -31,9 +30,7 @@ pub struct SweepAi {
impl SweepAi {
pub fn new(cx: &App) -> Self {
SweepAi {
api_token: std::env::var("SWEEP_AI_TOKEN")
.context("No SWEEP_AI_TOKEN environment variable set")
.log_err(),
api_token: std::env::var("SWEEP_AI_TOKEN").ok(),
debug_info: debug_info(cx),
}
}
Expand Down
Loading