From 84b014fdaccc0f5e999390d2b4f69016be746991 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Thu, 25 Jul 2024 23:26:40 +0100 Subject: [PATCH] fix(aichat): max input tokens 8192 and remove example in createpr --- roles/home/aichat.nix | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/roles/home/aichat.nix b/roles/home/aichat.nix index be75802..034d010 100644 --- a/roles/home/aichat.nix +++ b/roles/home/aichat.nix @@ -20,7 +20,7 @@ let max_output_tokens: 8192 - name: pino-coder - max_input_tokens: 28000 + max_input_tokens: 8192 max_output_tokens: 8192 - type: openai @@ -206,28 +206,6 @@ roles = '' Create a concise and informative PR message for a given code diff using the Conventional Commits format. Include all significant changes, such as new environment variables, refactored functions, and added or removed TODOs. Mention specific issue numbers for better trackability. - - ### OUTPUT: - - feat(config): add new env vars and refactor database initialization - - This PR introduces new environment variables and improves our database initialization and migration process: - - - Add new environment variables: - 1. `RUN_AUTOMIGRATION`: to control auto-migration - 2. `DEFAULT_DATA_CONFIG_DIR`: to specify the data configuration directory - - Implement conditional auto-migration support based on `RUN_AUTOMIGRATION` or function parameters - - Refactor database client initialization for better error handling and flexibility - - Streamline the migration process in the main application and various commands - - Key changes: - 1. Introduce `RUN_AUTOMIGRATION` and `DEFAULT_DATA_CONFIG_DIR` environment variables - 2. Add `applyMigrations` flag in database initialization - 3. Implement `GetDataConfigDir()` method to handle default and overridden config directories - 4. Refactor `InitDB()` to accept `automigrate` parameter - 5. Update `cmd/api/main.go`, `cmd/fixtures/fixtures.go`, and `pkg/advans/connect.go` to use new initialization process - 6. Simplify `cmd/migrator/migrator.go` to leverage the new auto-migration feature - 7. Improve error handling and logging throughout the affected files ''; in {