Commit Graph

25 Commits

Author SHA1 Message Date
Gregor Žunič
7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
Nick Sweeting
6bc1f7985f more type hint fixes 2025-06-21 04:56:27 -07:00
Nick Sweeting
340bafdd29 move old tests to old folder 2025-06-21 04:47:46 -07:00
Nick Sweeting
b67be37490 fix type hint errors 2025-06-21 04:35:24 -07:00
mertunsall
0c34c399db Merge branch 'main' into mert/new_everything 2025-06-17 11:19:06 +02:00
Nick Sweeting
3c65acf225 improve conversation saving 2025-06-13 17:02:29 -07:00
Nick Sweeting
582c039c15 make save_context and other file operations async, setup traces and other dirs on startup 2025-06-12 18:38:12 -07:00
Magnus Müller
8481e2cc04 Add control character handling in JSON extraction utility
Enhance the `extract_json_from_model_output` function to fix control characters in JSON strings before parsing. Introduced a new helper function, `_fix_control_characters_in_json`, to ensure valid JSON formatting by escaping control characters within string values. This improves the robustness of JSON parsing and error handling in the utility.
2025-06-09 23:11:46 +02:00
Magnus Müller
543ee984b3 Improve error handling in JSON parsing by including the exception message in the ValueError. Added debug logging for successful model output parsing in utils.py to enhance traceability and debugging. 2025-06-09 18:47:37 +02:00
Magnus Müller
469e859647 Enhance JSON extraction in utils.py to support function parameter retrieval. Added logic to extract the value of 'params', 'args', 'kwargs', or 'parameters' when the 'function' key is present, improving the handling of model outputs. 2025-06-09 18:38:39 +02:00
Magnus Müller
90a4d858f1 Enhance JSON extraction in utils.py to handle stray characters and ensure valid JSON parsing. Added logic to count braces and trim content to the last valid JSON position if necessary, improving robustness in JSON handling. 2025-06-09 11:47:19 +02:00
mertunsall
5e44c9b191 small fixes, change system prompt 2025-06-03 16:18:21 +02:00
Magnus Müller
3018f59654 Enhance JSON extraction in model output by supporting BaseMessage type and improving HTML tag removal 2025-06-02 14:19:53 +02:00
Nick Sweeting
78a1bef57a more test cleanups 2025-05-26 19:07:25 -07:00
Nick Sweeting
84d3013aad handle case where model responds with an object in a list 2025-05-06 17:38:11 +08:00
Nick Sweeting
66b3c26df5 add pyupgrade to lint rules 2025-05-02 15:21:23 +08:00
Nick Sweeting
38ab6c156c fix linter 2025-04-30 16:01:33 +08:00
Kamil Ujec
b8a8170d2a Added support for gemma instruction-tuned models 2025-04-24 20:25:27 +02:00
Nick Sweeting
1cbe93f8a3 Merge pull request #998 from cheewba/bugfix/empty-dir
Bugfix: error when trying to create empty dir.
2025-03-25 12:52:55 -07:00
alex
5dbc55bd46 Bugfix: in case of empty dirname, error raised when trying to create dirs 2025-03-11 10:25:27 +01:00
codenoid
d68d1f5019 Clean up unused import and remove trailing whitespace
- Removed unused 're' import from message_manager/utils.py
- Removed trailing whitespace in agent/service.py
2025-03-11 12:24:27 +07:00
codenoid
65f82588aa Fix DeepSeek model name matching in message conversion
- Updated string comparison for DeepSeek model names to use 'in' operator
- Corrected string literal comparison for more flexible model name detection
2025-03-11 12:12:40 +07:00
codenoid
10f0189049 Improve DeepSeek model handling and think tag removal
- Enhanced model name matching for DeepSeek models using 'in' operator
- Improved think tag removal to handle stray closing tags
- Updated message conversion and plan processing for DeepSeek models
2025-03-11 12:10:11 +07:00
Gregor Žunič
aa19548eff outsourced state v1 2025-02-13 21:48:00 -08:00
Matic Zavadlal
ce2a1e6839 stash 2025-02-13 14:37:08 +01:00