- Fix compiling errors.
This commit is contained in:
parent
9749893dd0
commit
5330180c36
7 changed files with 9169 additions and 293 deletions
7043
Cargo.lock
generated
Normal file
7043
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,11 +1,11 @@
|
|||
[package]
|
||||
name = "gbserver"
|
||||
name = "botserver"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = ["Rodrigo Rodriguez <me@rodrigorodriguez.com>"]
|
||||
description = "General Bots Server"
|
||||
license = "AGPL-3.0"
|
||||
repository = "https://alm.pragmatismo.com.br/generalbots/gbserver"
|
||||
repository = "https://github.pragmatismo.com.br/generalbots/botserver"
|
||||
|
||||
[features]
|
||||
default = ["postgres", "qdrant"]
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -18,6 +18,11 @@ for file in "${prompts[@]}"; do
|
|||
done
|
||||
|
||||
dirs=(
|
||||
"src/channels"
|
||||
"src/llm"
|
||||
"src/whatsapp"
|
||||
"src/config"
|
||||
"src/auth"
|
||||
"src/shared"
|
||||
"src/bot"
|
||||
"src/session"
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ impl AuthService {
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
{{END_REWRITTEN_CODE}}
|
||||
|
||||
impl Clone for AuthService {
|
||||
fn clone(&self) -> Self {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::basic::ScriptService;
|
||||
use crate::shared::models::automation_model::{Automation, TriggerKind};
|
||||
use crate::shared::models::{Automation, TriggerKind};
|
||||
use crate::shared::state::AppState;
|
||||
use chrono::Datelike;
|
||||
use chrono::Timelike;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ use uuid::Uuid;
|
|||
|
||||
use crate::{
|
||||
auth::AuthService,
|
||||
channels::{ChannelAdapter, VoiceAdapter, WebChannelAdapter},
|
||||
channels::ChannelAdapter,
|
||||
chart::ChartGenerator,
|
||||
llm::LLMProvider,
|
||||
session::SessionManager,
|
||||
|
|
@ -158,7 +158,7 @@ impl BotOrchestrator {
|
|||
};
|
||||
|
||||
if let Some(adapter) = self.channels.get(&message.channel) {
|
||||
adapter.send_message(bot_response).await?;
|
||||
adapter.send_message(bot_response).await;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue