Move report_assistant_event
into language_model
crate (#25508)
This PR moves the `report_assistant_event` function from the `language_models` crate to the `language_model` crate. This allows us to drop some dependencies on `language_models`. Release Notes: - N/A
This commit is contained in:
parent
e06666759a
commit
e5b97a5e48
15 changed files with 28 additions and 34 deletions
|
@ -3,6 +3,7 @@ mod rate_limiter;
|
|||
mod registry;
|
||||
mod request;
|
||||
mod role;
|
||||
mod telemetry;
|
||||
|
||||
#[cfg(any(test, feature = "test-support"))]
|
||||
pub mod fake_provider;
|
||||
|
@ -11,12 +12,7 @@ use anyhow::Result;
|
|||
use futures::FutureExt;
|
||||
use futures::{future::BoxFuture, stream::BoxStream, StreamExt, TryStreamExt as _};
|
||||
use gpui::{AnyElement, AnyView, App, AsyncApp, SharedString, Task, Window};
|
||||
pub use model::*;
|
||||
use proto::Plan;
|
||||
pub use rate_limiter::*;
|
||||
pub use registry::*;
|
||||
pub use request::*;
|
||||
pub use role::*;
|
||||
use schemars::JsonSchema;
|
||||
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||
use std::fmt;
|
||||
|
@ -24,6 +20,13 @@ use std::{future::Future, sync::Arc};
|
|||
use thiserror::Error;
|
||||
use ui::IconName;
|
||||
|
||||
pub use crate::model::*;
|
||||
pub use crate::rate_limiter::*;
|
||||
pub use crate::registry::*;
|
||||
pub use crate::request::*;
|
||||
pub use crate::role::*;
|
||||
pub use crate::telemetry::*;
|
||||
|
||||
pub const ZED_CLOUD_PROVIDER_ID: &str = "zed.dev";
|
||||
|
||||
pub fn init(cx: &mut App) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue