Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -8,8 +8,8 @@ use std::sync::Arc;
|
||||
use futures::FutureExt;
|
||||
use itertools::Itertools as _;
|
||||
use persistence::model::AgentConversationRecord;
|
||||
use warp_core::features::FeatureFlag;
|
||||
use warpui::{AppContext, SingletonEntity};
|
||||
use galaxy_core::features::FeatureFlag;
|
||||
use galaxyui::{AppContext, SingletonEntity};
|
||||
|
||||
use crate::ai::agent::api::convert_conversation::{
|
||||
convert_conversation_data_to_ai_conversation, RestorationMode,
|
||||
@@ -179,9 +179,9 @@ pub async fn load_conversation_from_server(
|
||||
|
||||
/// Boxes a future with the right type for the platform.
|
||||
/// On WASM, futures must not implement Send.
|
||||
fn box_future<F>(f: F) -> warpui::r#async::BoxFuture<'static, Option<CloudConversationData>>
|
||||
fn box_future<F>(f: F) -> galaxyui::r#async::BoxFuture<'static, Option<CloudConversationData>>
|
||||
where
|
||||
F: Future<Output = Option<CloudConversationData>> + warpui::r#async::Spawnable,
|
||||
F: Future<Output = Option<CloudConversationData>> + galaxyui::r#async::Spawnable,
|
||||
{
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(target_family = "wasm")] {
|
||||
@@ -207,7 +207,7 @@ impl BlocklistAIHistoryModel {
|
||||
&self,
|
||||
conversation_id: AIConversationId,
|
||||
ctx: &AppContext,
|
||||
) -> warpui::r#async::BoxFuture<'static, Option<CloudConversationData>> {
|
||||
) -> galaxyui::r#async::BoxFuture<'static, Option<CloudConversationData>> {
|
||||
// First check if the conversation is already in memory
|
||||
if let Some(conversation) = self.conversations_by_id.get(&conversation_id) {
|
||||
return box_future(futures::future::ready(Some(CloudConversationData::Oz(
|
||||
@@ -263,7 +263,7 @@ impl BlocklistAIHistoryModel {
|
||||
&self,
|
||||
server_token: &ServerConversationToken,
|
||||
ctx: &AppContext,
|
||||
) -> warpui::r#async::BoxFuture<'static, Option<CloudConversationData>> {
|
||||
) -> galaxyui::r#async::BoxFuture<'static, Option<CloudConversationData>> {
|
||||
// Fast path: token is known locally.
|
||||
if let Some(conversation_id) = self.find_conversation_id_by_server_token(server_token) {
|
||||
return self.load_conversation_data(conversation_id, ctx);
|
||||
|
||||
Reference in New Issue
Block a user