fix(aichat): max input tokens 8192 and remove example in createpr
This commit is contained in:
parent
8d80114fe8
commit
84b014fdac
@ -20,7 +20,7 @@ let
|
|||||||
max_output_tokens: 8192
|
max_output_tokens: 8192
|
||||||
|
|
||||||
- name: pino-coder
|
- name: pino-coder
|
||||||
max_input_tokens: 28000
|
max_input_tokens: 8192
|
||||||
max_output_tokens: 8192
|
max_output_tokens: 8192
|
||||||
|
|
||||||
- type: openai
|
- type: openai
|
||||||
@ -206,28 +206,6 @@ roles = ''
|
|||||||
Create a concise and informative PR message for a given code diff using the Conventional Commits format.
|
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.
|
Include all significant changes, such as new environment variables, refactored functions, and added or removed TODOs.
|
||||||
Mention specific issue numbers for better trackability.
|
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
|
in
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user