[PR #47] fixing files for chainlit execution #47

Open
opened 2026-03-03 16:41:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/neural-maze/ava-whatsapp-agent-course/pull/47
Author: @rafaelgildin
Created: 12/24/2025
Status: 🔄 Open

Base: mainHead: fix/groq-for-chainlit-execution


📝 Commits (2)

  • 659e039 fixing files for chainlit execution
  • f3d1602 adding the creation of memory folders if not exists.

📊 Changes

4 files changed (+1117 additions, -1062 deletions)

View changed files

📝 .gitignore (+6 -1)
📝 Makefile (+10 -0)
📝 src/ai_companion/settings.py (+1 -1)
📝 uv.lock (+1100 -1060)

📄 Description

Those are the changes implemented given some errors

Solving Errors

  • Considering the chainlit implementation, given that I can't run with Wpp. But I think both will be blocked by this error.
  1. By running locally with debugger for chainlit, I've got this error
groq.BadRequestError: Error code: 400 - {'error': {'message': 'The model `gemma2-9b-it` has been decommissioned and is no longer supported. Please refer to https://console.groq.com/docs/deprecations for a recommendation on which model to use instead.', 'type': 'invalid_request_error', 'code': 'model_decommissioned'}}
During task with name 'memory_extraction_node' and id '09f926f8-ea6b-c119-f118-8ac2c7563e59'

Solution

  • Change model from gemma2-9b-it to llama-3.1-8b-instant

All good now

2025-12-24 17:55:11 - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK"
  1. Updating UV.lock given the error message, by running make setup
Resolved 178 packages in 74ms
The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`.
make: *** [Makefile:10: setup] Error 1
  • This was solved by cleaning the uv.lock file and reinstalling with make sync
  • Now setup works fine
uv sync --locked
Resolved 178 packages in 1ms
Audited 173 packages in 1ms

Minor Changes

1.Changes to make file

  • Reinstall the uv.lock if it fails
# run with `make sync`
sync: # Sync dependencies and create lock file if needed
	uv sync
  • syncing the libs based on the uv.lock file and creating the long_term and short_term databases to avoid the error
sqlite3.OperationalError: unable to open database file
  • Command
# run with `make setup`
setup: # Install dependencies
	uv sync --locked
  • Cleaning the .venv folder when needed
# run with `make clean`
clean: # Clean the virtual environment
	rm -rf .venv
  1. Update ignore
  • Adding files to .gitignore

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/neural-maze/ava-whatsapp-agent-course/pull/47 **Author:** [@rafaelgildin](https://github.com/rafaelgildin) **Created:** 12/24/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/groq-for-chainlit-execution` --- ### 📝 Commits (2) - [`659e039`](https://github.com/neural-maze/ava-whatsapp-agent-course/commit/659e039b7ec84eb05348e5d55d5ae7845d71ef31) fixing files for chainlit execution - [`f3d1602`](https://github.com/neural-maze/ava-whatsapp-agent-course/commit/f3d1602a0c551e1f3db06cc528d6f5afdf2b636e) adding the creation of memory folders if not exists. ### 📊 Changes **4 files changed** (+1117 additions, -1062 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+6 -1) 📝 `Makefile` (+10 -0) 📝 `src/ai_companion/settings.py` (+1 -1) 📝 `uv.lock` (+1100 -1060) </details> ### 📄 Description # Those are the changes implemented given some errors ## Solving Errors - Considering the chainlit implementation, given that I can't run with Wpp. But I think both will be blocked by this error. 1. By running locally with debugger for chainlit, I've got this error ```bash groq.BadRequestError: Error code: 400 - {'error': {'message': 'The model `gemma2-9b-it` has been decommissioned and is no longer supported. Please refer to https://console.groq.com/docs/deprecations for a recommendation on which model to use instead.', 'type': 'invalid_request_error', 'code': 'model_decommissioned'}} During task with name 'memory_extraction_node' and id '09f926f8-ea6b-c119-f118-8ac2c7563e59' ``` Solution - Change model from `gemma2-9b-it` to `llama-3.1-8b-instant` All good now ```bash 2025-12-24 17:55:11 - HTTP Request: POST https://api.groq.com/openai/v1/chat/completions "HTTP/1.1 200 OK" ``` 2. Updating UV.lock given the error message, by running `make setup` ```bash Resolved 178 packages in 74ms The lockfile at `uv.lock` needs to be updated, but `--locked` was provided. To update the lockfile, run `uv lock`. make: *** [Makefile:10: setup] Error 1 ``` - This was solved by cleaning the uv.lock file and reinstalling with `make sync` - Now setup works fine ```bash uv sync --locked Resolved 178 packages in 1ms Audited 173 packages in 1ms ``` --- ## Minor Changes 1.Changes to make file - Reinstall the uv.lock if it fails ```bash # run with `make sync` sync: # Sync dependencies and create lock file if needed uv sync ``` - syncing the libs based on the uv.lock file and creating the long_term and short_term databases to avoid the error ```bash sqlite3.OperationalError: unable to open database file ``` - Command ```bash # run with `make setup` setup: # Install dependencies uv sync --locked ``` - Cleaning the .venv folder when needed ```bash # run with `make clean` clean: # Clean the virtual environment rm -rf .venv ``` 2. Update ignore - Adding files to `.gitignore` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ava-whatsapp-agent-course#47
No description provided.