Commit Graph

57 Commits

Author SHA1 Message Date
Charles Packer
dc5da0ba36 fix: patch bug w/ extended thinking mode involving text leaking into reasoning (#4341)
* fix: patch for bad native reasoning behavior w/ sonnet

* fix: cleanup

* fix: cleanup

* fix: another prompt tune for less flaking
2025-09-01 20:26:24 -07:00
Charles Packer
56452ae426 fix(core): init attempt at patching the extended thinking bug (#4331)
* fix(core): init attempt at patching the extended thinking bug

* fix: refactor, fix in a different way be merging instead of dropping, seems to be working

* chore: cleanup

* fix: patch the test - with the new native thinking behavior, anthropic native reasoning does not trigger properly post tool-call

* fix: another attempt

* fix: tests passing locally

* fix: another patch to tests

* fix: pathc more tests

* fix: try turning on the interleave-thinking beta header

* fix: patch test

* fix: add new tests to be more robust

* fix: patch the prompt, now it works more reliably

* fix: typo
2025-09-01 11:09:02 -07:00
jnjpng
4df4c5ea2e fix: retry on MALFORMED_FUNCTION_CALL for gemini [LET-4089]
---------

Co-authored-by: Letta Bot <noreply@letta.com>
2025-09-01 07:26:13 -07:00
Kian Jones
ca6cfa5914 chore: migrate to ruff (#4305)
* base requirements

* autofix

* Configure ruff for Python linting and formatting

- Set up minimal ruff configuration with basic checks (E, W, F, I)
- Add temporary ignores for common issues during migration
- Configure pre-commit hooks to use ruff with pass_filenames
- This enables gradual migration from black to ruff

* Delete sdj

* autofixed only

* migrate lint action

* more autofixed

* more fixes

* change precommit

* try changing the hook

* try this stuff
2025-08-29 11:11:19 -07:00
cthomas
6a5a9962a2 fix: sonnet send message tests [LET-4074] (#4260)
* fix: sonnet send message tests

* one more check
2025-08-27 13:51:21 -07:00
cthomas
8b617c9e0d fix: gemini flash integration test [LET-4060] (#4242)
* fix: gemini flash integration test

* also update google flash

* catch error in test

* revert test changes

* do try catch again

* remove try catch from streaming tests

* add try catch for summarize test also
2025-08-27 11:59:15 -07:00
cthomas
9e48f3675a feat: add unit test for backgrounds filter [LET-4051] (#4230)
feat: add unit test for backgrounds filter
2025-08-27 09:40:57 -07:00
Andy Li
acfdab2ced feat: uv migration (#3493)
* uv migration

smaller runners, freeze test runs, remove dev, ruff,hatchling, previw,
poetry, generates wheel, installs wheel, docker

* fix tests and dependency groups

* test fixes

* test fixing and main

* resolve merge conflict

* dev + test dependency group

* Test

* trigger CI

* trigger CI

* add debugging info

* trigger CI

* uv for reusable and sdk preview

* resolve mc and reformat black

* staged-api

* mypy

* fix fern

* prod Dockerfile

* model sweep, and project.toml and uvlock

* --group test -> --extra dev

* remove redundant --extra dev and rename tests to dev

* sdk backwards compat install sqlite

* install sqlite group for sdk-backwards-compat

* install uv on gh runner for cloud-api-integration-tests

* stage+publish

* pytest asyncio

* bug causing pytest package to get removed

* try to fix async event loop issues

* migrate to --with google-cloud-secret-manager

---------

Co-authored-by: Kian Jones <kian@letta.com>
2025-08-26 18:11:09 -07:00
Kevin Lin
1c3781f68d fix: patch anthropic send message tests (#4173)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-08-25 21:17:08 -07:00
cthomas
e63dedab7a feat: add retrieve stream testing (#4168) 2025-08-25 16:13:59 -07:00
cthomas
0fa8802834 feat: add redis client to CI for background mode tests (#4155) 2025-08-25 11:37:46 -07:00
cthomas
be3e562087 feat: add new groq llm client LET-3943 (#3937)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
2025-08-21 13:13:25 -07:00
Charles Packer
d5b62af62d feat: fix anthropic stream buffering issue (was a missing beta header) (#3933) 2025-08-14 22:26:56 -07:00
cthomas
17bd5ff2b0 fix: send message tests failing on main (#3878) 2025-08-12 12:47:50 -07:00
cthomas
639641137d feat: consolidate reasoning model checks (#3862) 2025-08-11 16:55:45 -07:00
jnjpng
9d72955e7f fix: lmstudio tests and integration
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-08-07 20:02:56 -07:00
Matthew Zhou
4b788d11de feat: Support streaming and move endpoint for letta-free (#3780) 2025-08-06 15:33:35 -07:00
jnjpng
fcaa6c78a8 fix: fix and update vllm tests
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
Co-authored-by: Kian Jones <kian@letta.com>
2025-08-06 14:37:55 -07:00
Sarah Wooders
f5187583d2 feat: move ollama to new agent loop (#3615) 2025-07-31 13:40:26 -07:00
jnjpng
7f12230c21 fix: manually count tokens for streaming lmstudio models
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
Co-authored-by: Charles Packer <packercharles@gmail.com>
2025-07-29 18:12:42 -07:00
Sarah Wooders
6c08adf97e test: run tests with gemini 2.5 instead (#3548)
Co-authored-by: Kian Jones <11655409+kianjones9@users.noreply.github.com>
Co-authored-by: Kian Jones <kian@letta.com>
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-07-29 14:50:28 -07:00
Matthew Zhou
2ef90aafc0 feat: Scrub inner thoughts from history on toggle (#3607) 2025-07-28 21:43:36 -07:00
Matthew Zhou
84ea52172a feat: Add ability to disable reasoning (#3594) 2025-07-28 15:30:10 -07:00
Kian Jones
cef4eb1910 feat(ci): Add coverage for self-hosted providers (#2976) 2025-07-21 18:26:23 -07:00
Andy Li
b7b678db4e feat: stop reasons and error messages and sentry fixes 2025-07-18 11:56:20 -07:00
Andy Li
7929d55b26 fix: streaming step failures 2025-07-10 14:06:39 -07:00
Andy Li
f9bb757a98 feat: support for agent loop job cancelation (#2837) 2025-07-02 14:31:16 -07:00
Andy Li
3654fa8c26 feat: expand summarizer providers 2025-07-01 15:07:38 -07:00
cthomas
4deaea4d95 test: add token count check in streaming tests (#2936) 2025-06-20 13:33:48 -07:00
cthomas
a332b34830 feat: make create_async route consistent with other message routes (#2877) 2025-06-19 13:51:51 -07:00
cthomas
fa362c404f feat: add bedrock client (#2913) 2025-06-19 12:07:00 -07:00
Shangyin Tan
c9841559e8 feat: add optional embedding_config parameter to file upload endpoint (#2901)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-06-18 18:10:48 -07:00
Matthew Zhou
c999875ae9 feat: Add claude 4 config and add more models to CI (#2747)
Co-authored-by: Charles Packer <packercharles@gmail.com>
2025-06-18 17:23:52 -07:00
Matthew Zhou
26089bee58 feat: Add callback_error and fix callback logic (#2842) 2025-06-16 13:23:03 -07:00
Matthew Zhou
5273de88d1 feat: Asyncify message async routes and also add callback url (#2838) 2025-06-16 11:23:46 -07:00
cthomas
97986b0f03 feat: send stop reason in letta APIs (#2789) 2025-06-13 16:04:48 -07:00
Kevin Lin
a8895ad017 feat: add reasoning models to integration_test_send_message (#2710) 2025-06-13 14:54:37 -07:00
Kian Jones
aeadd1aebe fix(ci): autosummarize test fails (pydantic version dependant?) (#2792) 2025-06-13 12:16:48 -07:00
Matthew Zhou
28fdaaff74 fix: Fix claude sonnet 3_7 tests (#2767) 2025-06-11 17:53:03 -07:00
cthomas
aedc95056a test: add new agent fixture to send message test (#2758) 2025-06-11 11:48:34 -07:00
cthomas
6a23bc743d feat: support multi content part input (#2717) 2025-06-10 13:36:17 -07:00
cthomas
2823e4447a feat: add multi-modal input support (#2590) 2025-06-08 18:28:01 -07:00
cthomas
30ddbec6b3 test: add send message error test case (#2701) 2025-06-07 16:14:08 -07:00
cthomas
2a50ea224f test: clean up send message tests (#2700) 2025-06-07 14:46:24 -07:00
Andy Li
8fdfe9d66a fix: ollama support byom (#2602) 2025-06-03 15:40:21 -07:00
cthomas
07ecdc9c6d test: make send message tests less flaky (#2578) 2025-06-01 16:14:30 -07:00
Matthew Zhou
285acd0324 feat: Add summarization for more scenarios (#2499) 2025-05-29 11:10:13 -07:00
Sarah Wooders
1465c48bb9 fix: pass in usage statistics to patch streaming error (#2264) 2025-05-19 21:10:11 -07:00
Sarah Wooders
f076964bd1 feat: support together in new agent loop and add tests (#2231) 2025-05-17 19:17:08 -07:00
Sarah Wooders
6042567506 feat: support step streaming for new agent loop (#2182) 2025-05-17 17:22:20 -07:00