zeta: Refresh LLM token in case it expired (#21796)
Release Notes: - N/A --------- Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
parent
09006aaee9
commit
96499b7b25
4 changed files with 209 additions and 132 deletions
|
@ -1,7 +1,7 @@
|
|||
use anyhow::Result;
|
||||
use copilot::{Copilot, Status};
|
||||
use editor::{scroll::Autoscroll, Editor};
|
||||
use feature_flags::FeatureFlagAppExt;
|
||||
use feature_flags::{FeatureFlagAppExt, ZetaFeatureFlag};
|
||||
use fs::Fs;
|
||||
use gpui::{
|
||||
div, Action, AnchorCorner, AppContext, AsyncWindowContext, Entity, IntoElement, ParentElement,
|
||||
|
@ -199,7 +199,7 @@ impl Render for InlineCompletionButton {
|
|||
}
|
||||
|
||||
InlineCompletionProvider::Zeta => {
|
||||
if !cx.is_staff() {
|
||||
if !cx.has_flag::<ZetaFeatureFlag>() {
|
||||
return div();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue