Commit graph

102 commits

Author SHA1 Message Date
9c36aa10fa - More automation from start to web, user sessions. 2025-10-20 23:32:49 -03:00
f8d4e8925f Add indicatif for progress bars and enhance bootstrap
----------------------------------------------------------------
2025-10-19 19:28:08 -03:00
be1e2575f9 - Refactor in bot package. 2025-10-18 12:01:39 -03:00
3761707c5c Remove sqlite support and switch auth to POST 2025-10-16 16:49:23 -03:00
e5a9752caa Enhance bot memory and Redis guards
- Derive bot_id from BOT_GUID env var
- Guard concurrent runs with Redis
- Read CACHE_URL for Redis connection
- Extend bot memory keyword to accept comma as separator
- Increase LLM timeouts to 180s (local and legacy)
- Update templates to use bot memory (GET_BOT_MEMORY/SET_BOT_MEMORY)
- Fix start script path to announcements.gbai
2025-10-16 14:22:28 -03:00
4acb9bb8f5 Migrate automations to param and sqlite
- Rename script_name to param in automation flow and DB schema
- Add BotMemory model and bot_memories table
- Remove script_name field from automation
- Enable sqlite support via rusqlite and related crates (optional)
- Update prompts and queries to use param instead of script_name
- Remove deprecated annoucements GBai templates and align add-req.sh
- Refactor main to initialize automation service and simplify startup
2025-10-16 11:43:02 -03:00
1fdf76b530 Refactor TALK keyword to use try_send
Remove unnecessary async spawn in TALK handling and use `try_send` on
the WebSocket channel. Acquire `response_channels` with `try_lock` and
spawn an async task only when falling back to the web adapter. Clean up
debug logs and add missing `env` import. Also delete an extra blank line
in the announcement start script.
2025-10-15 22:39:04 -03:00
648e7f48f9 Refactor LLM parsing and overhaul connection UI
- Strip content up to the “final<|message|>” token in OpenAI responses.
- Replace the text‑based connection‑status indicator with a small
  flashing circle.
- Simplify updateConnectionStatus to take only the status argument.
- Remove special handling of the initial assistant message and
  streamline empty‑state removal.
- Clean up stray blank lines in the announcement template.
2025-10-15 22:24:04 -03:00
ff89298e61 Refactor async GET and LLM, add connection UI
- Execute GET requests in a dedicated thread with its own Tokio runtime,
  add timeout handling and clearer error messages.
- Tighten `is_safe_path` checks and simplify HTTP/S3 logic.
- Change `llm_keyword` to accept `Arc<AppState>`, add prompt builder,
  run LLM generation in an isolated thread with timeout.
- Update keyword registration call in `basic/mod.rs`.
- Convert template script to use `let` declarations and return a
  boolean.
- Introduce connection‑status indicator in the web UI with styles,
  automatic reconnection attempts, and proper WS/WSS handling for voice.
2025-10-15 21:18:01 -03:00
cfeb024173 Refactor GET keyword with blocking execution
- Replace async task spawning with `block_in_place` to simplify GET
  handling
- Add detailed safety checks for file paths and organization prefixes
- Introduce timeout and keep‑alive settings for HTTP client
- Improve S3 bucket access with existence check, timeouts, and richer
  logging
- Switch tracing logs to debug and add warning logs where appropriate
- Update announcement template to retrieve a PDF, generate a resume via
  LLM, and set context for subsequent queries.
2025-10-15 13:13:27 -03:00
f401c170d4 - GET ketyowrd for buckets. 2025-10-15 12:45:15 -03:00
a293c0e083 - Fix on the web presentation. 2025-10-15 10:37:04 -03:00
f626793d77 Refactor LLM flow, add prompts, fix UI streaming
- Extract LLM generation into `execute_llm_generation` and simplify
  keyword handling.
- Prepend system prompt and session context to LLM prompts in
  `BotOrchestrator`.
- Parse incoming WebSocket messages as JSON and use the `content` field.
- Add async `get_session_context` and stop injecting Redis context into
  conversation history.
- Change default LLM URL to `http://48.217.66.81:8080` throughout the
  project.
- Use the existing DB pool instead of creating a separate custom
  connection.
- Update `start.bas` to call LLM and set a new context string.
- Refactor web client message handling: separate event processing,
  improve streaming logic, reset streaming state on thinking end, and
  remove unused test functions.
2025-10-15 01:14:37 -03:00
e144e013d7 Add async Redis context storage and session fetch
- Use `tokio::spawn` to run Redis SET for `SET_CONTEXT` in a background
  task with detailed tracing.
- Move context retrieval from `BotOrchestrator` to `SessionManager`,
  inserting it as a system message in conversation history.
- Remove redundant Redis fetch logic from `BotOrchestrator`.
- Update `DEV.md` to install `valkey-cli`, reorder cargo tools, and
  adjust apt commands.
- Add a `SET_CONTEXT "azul bolinha"` example to the announcements
  template.
2025-10-15 00:01:48 -03:00
573437cb6f - Database schema added. 2025-10-14 16:34:34 -03:00
37d8fab617 Refactor session handling and auth flow 2025-10-14 14:51:49 -03:00
51c9aea63b Add botserver prompt, auth template, and CSS 2025-10-14 13:51:54 -03:00
8f96cd1015 Refactor server code and add auth API fixes 2025-10-14 13:51:27 -03:00
3aeb3ebc70 - New features for start.bas 2025-10-13 17:43:03 -03:00
283774aa0f - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
1bb97ebee9 Migration to Rust removal of Azure. 2025-10-06 10:29:14 -03:00
023b83aacf - Warning removal.
Some checks failed
GBCI / build (push) Failing after 11s
2025-09-24 15:20:32 -03:00
4ab7467a2f -New PARAMS for LLM Embedding.
Some checks are pending
GBCI / build (push) Waiting to run
2025-09-11 17:03:29 -03:00
d7d6afa5cc - LocalLLM Embedded.
Some checks failed
GBCI / build (push) Has been cancelled
2025-09-10 11:11:32 -03:00
300b5dc258 Update templates/edu.gbai/edu.gbdialog/enrollment.bas
Some checks failed
GBCI / build (push) Failing after 24m25s
2025-08-10 20:59:06 +00:00
f245de43b2 fix: update Puppeteer launch options to use environment variables for headless mode and enhance enrollment confirmation messages
Some checks failed
GBCI / build (push) Failing after 8m24s
2025-06-27 12:46:15 -03:00
2b2ab3a42e fix(KBService): standardize formatting and improve code readability
All checks were successful
GBCI / build (push) Successful in 1m13s
2025-05-22 20:32:30 -03:00
1ef6cbb032 feat(KeywordsExpressions): add support for posting to Instagram with parameters
All checks were successful
GBCI / build (push) Successful in 2m2s
refactor(GBAdminService): improve folder name extraction logic
refactor(ImageProcessingServices): clean up whitespace and enhance image generation options
refactor(SystemKeywords): simplify rewrite prompt and logging
fix(ChatServices): correct spacing in model invocation
delete(marketing.gbai): remove outdated marketing poster template
add(marketing.gbai): create new marketing poster template with Instagram posting functionality
2025-05-09 21:19:14 -03:00
4d850362d2 chore: remove unused image assets and update API URL in configuration 2025-04-25 01:46:35 -03:00
31b7d5d59e fix(GBMinService): comment out file writing to prevent overwriting bot manifest
Some checks failed
GBCI / build (push) Failing after 1h26m41s
2025-04-17 16:21:02 -03:00
6d75b4997b fix: update URLs and email addresses to reflect new domain 2025-04-15 12:49:05 -03:00
5e8e3cbea3 fix(llm.gblib): Talk to data local db use fix. 2024-11-28 11:13:01 -03:00
878f10245f fix(kb.gbapp): Auto Logo generation fixed. 2024-11-26 09:35:15 -03:00
5b69a12d74 fix(llm.gblib): Talk to data local db use fix. 2024-11-24 12:43:58 -03:00
26e7b4eec9 fix(llm.gblib): Vector store fixed in /publish. 2024-11-08 11:49:12 -03:00
749d7e7bdb new(llm.gblib): Added Claude. 2024-11-08 06:49:30 -03:00
082b18a750 fix(all): LLM templates on production. 2024-10-30 15:35:11 -03:00
5590460000 fix(all): Removed router. 2024-10-28 09:43:02 -03:00
2a279d27ca new(core.gbapp): LLM alerts for data. 2024-10-16 12:56:09 -03:00
789fd79777 new(core.gbapp): LLM alerts for data. 2024-10-16 02:50:24 -03:00
52f416076e new(core.gbapp): LLM alerts for data. 2024-10-15 16:09:48 -03:00
0832f9d769 new(core.gbapp): Timestamp fields are now default. 2024-10-15 15:05:43 -03:00
24c8d5c625 new(basic.gblib): SEND FILE pdf as temporary images ViewOnce. 2024-10-12 16:28:33 -03:00
d5cb4bd559 new(basic.gblib): SEND FILE pdf as temporary images ViewOnce. 2024-10-07 22:26:50 -03:00
4c4fc3016c new(basic.gblib): SEND FILE pdf as temporary images ViewOnce. 2024-10-07 22:25:22 -03:00
d68feec33b new(basic.gblib): SEND FILE pdf as temporary images ViewOnce. 2024-10-06 15:49:07 -03:00
25245a010e new(basic.gblib): SEND FILE pdf as temporary images. 2024-10-04 00:55:10 -03:00
7013d168df new(basic.gblib): SEND FILE pdf as temporary images. 2024-10-02 18:39:25 -03:00
53e0558593 new(basic.gblib): HEAR AS QRCODE. 2024-10-02 10:12:03 -03:00
110083e1c1 fix(all): Templates OK. 2024-09-29 20:23:13 -03:00