Commit Graph

47 Commits

Author SHA1 Message Date
Kian Jones
f5c4ab50f4 chore: add ty + pre-commit hook and repeal even more ruff rules (#9504)
* auto fixes

* auto fix pt2 and transitive deps and undefined var checking locals()

* manual fixes (ignored or letta-code fixed)

* fix circular import

* remove all ignores, add FastAPI rules and Ruff rules

* add ty and precommit

* ruff stuff

* ty check fixes

* ty check fixes pt 2

* error on invalid
2026-02-24 10:55:11 -08:00
Kian Jones
25d54dd896 chore: enable F821, F401, W293 (#9503)
* auto fixes

* auto fix pt2 and transitive deps and undefined var checking locals()

* manual fixes (ignored or letta-code fixed)

* fix circular import
2026-02-24 10:55:08 -08:00
Kian Jones
745dd1e124 fix(core): reject empty API keys in Bearer auth headers (#9350)
Empty or None API keys resulted in "Bearer " header values which cause
httpx.LocalProtocolError. Use truthiness checks instead of `is not None`
to also reject empty strings before constructing Authorization headers.

Datadog: https://us5.datadoghq.com/error-tracking/issue/ad3c1e38-d557-11f0-a65d-da7ad0900000

🤖 Generated with [Letta Code](https://letta.com)

Co-authored-by: Letta <noreply@letta.com>
2026-02-24 10:52:07 -08:00
Kevin Lin
857139f907 feat: Set reasonable defaults for max output tokens [LET-6483] (#7084) 2025-12-17 17:31:02 -08:00
Sarah Wooders
91e3dd8b3e feat: fix new summarizer code and add more tests (#6461) 2025-12-15 12:02:19 -08:00
Kian Jones
704d3b2d79 chore: refactor not to use warnings.warn (#5730)
* refactor not to use warnings.warn

* temp circular import fix maybe unecessary/bnad

* fix Deprecation warning

* fix deprecation warning and mcp thing?

* revert changes to mcp server test

* fix deprecation warning
2025-10-24 15:14:31 -07:00
cthomas
7c88470705 feat: support filtering out messages when converting to openai dict (#4337)
* feat: support filtering out messages when converting to openai dict

* fix imports
2025-09-01 12:48:45 -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
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
Andy Li
9ca1664ed8 feat: support for providers 2025-07-22 16:09:50 -07:00
Andy Li
1590e4e3e6 chore: decrease pool logging 2025-07-22 14:54:22 -07:00
Charles Packer
5d9c2b5ddc fix: change inner_thoughts to thinking in kwargs (#3165) 2025-07-21 23:47:55 +00:00
Andy Li
904d9ba5a2 chore: strings lint cleanup (#3374) 2025-07-18 09:20:45 -07:00
jnjpng
729acaedb2 feat: add token column to mcp_servers and pipe through to sse server config (#2775)
Co-authored-by: Jin Peng <jinjpeng@Jins-MacBook-Pro.local>
2025-06-14 18:48:10 -07:00
Andy Li
617d208bcc fix: list ollama embeddings models (#2711) 2025-06-10 10:44:26 -07:00
Andy Li
80f6e97ca9 feat: otel metrics and expanded collecting (#2647)
(passed tests in last run)
2025-06-05 17:20:14 -07:00
Andy Li
abd3fb3204 chore: enable vertex experimental (#2053)
Co-authored-by: Caren Thomas <carenthomas@gmail.com>
2025-05-07 14:52:26 -07:00
cthomas
167c6a1d2e fix: pydantic serializer warning datetime -> int (#1701) 2025-04-23 14:53:58 -07:00
Charles Packer
408057c216 feat: initial MCP support (#1229)
Co-authored-by: Matt Zhou <mattzh1314@gmail.com>
2025-03-12 17:33:24 -07:00
cthomas
19e65bb2c0 feat: log request data to otel (#1149) 2025-03-03 11:51:05 -08:00
Kevin Lin
98f0062416 feat: support deepseek models (#821)
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
Co-authored-by: Shubham Naik <shub@letta.com>
2025-02-18 15:28:01 -08:00
Matthew Zhou
8d765f286e feat: Composio tools execute on-the-fly (#999) 2025-02-13 16:13:29 -08:00
Matthew Zhou
c17737f0ec chore: Remove overly verbose warning (#986) 2025-02-13 10:17:53 -08:00
Matthew Zhou
85dee1785b fix: Fix composio bugs (#884)
Co-authored-by: Charles Packer <packercharles@gmail.com>
2025-02-03 14:09:45 -05:00
Charles Packer
bfe2c6e8f5 fix: fix lmstudio docker (#788) 2025-01-26 19:19:31 -08:00
Matthew Zhou
d110378146 feat: Native agent to agent messaging (#668) 2025-01-16 10:36:15 -08:00
Caren Thomas
7144fd2867 run black, add isort config to pyproject.toml 2024-12-26 19:43:11 -08:00
Caren Thomas
905906d416 run isort on apps/core 2024-12-26 19:27:09 -08:00
Shubham Naik
4cf354c033 fix: add tests to cypress 2024-12-23 14:44:08 -08:00
Matthew Zhou
7fb8f16155 chore: Add testing around base tools (#2268) 2024-12-17 15:46:05 -08:00
Keith
c7131ad0da docs: Feature/update docs (#2257) 2024-12-16 17:15:50 -08:00
Sarah Wooders
213749a177 feat: support system message for chatml wrapper (#2187) 2024-12-07 11:50:18 -08:00
Charles Packer
b01f0cc1b0 fix: cleanup CLI tool prints (#2130) 2024-12-01 17:41:17 -08:00
Charles Packer
6be2000eda feat: support pydantic models in tool uploads + patch dict/list types (#2112) 2024-11-30 10:09:03 -08:00
Charles Packer
324346db5c fix: extra safety checks in the token counter for functions (#2061) 2024-11-22 12:13:10 -08:00
Charles Packer
202d6e25aa fix: add more types to the type_map from python -> json schema (#2095) 2024-11-22 12:12:40 -08:00
Charles Packer
a75dfd7907 fix: context window overflow patch (#2053) 2024-11-18 15:21:11 -08:00
Charles Packer
f57dc28552 feat: support togetherAI via /completions (#2045) 2024-11-18 15:15:05 -08:00
Sarah Wooders
4f30288c14 fix: fix Unsupport authentication type error for Ollama (#2018) 2024-11-09 14:46:39 -08:00
Charles Packer
11b8371953 feat: add functions to get context window overview (#1903) 2024-10-18 14:29:28 -07:00
Matthew Zhou
c9701f490c feat: Add default external tools (#1899)
Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
2024-10-17 10:26:37 -07:00
Charles Packer
1099809e49 fix: patch errors with OllamaProvider (#1875) 2024-10-12 20:19:20 -07:00
Sarah Wooders
3c547345e1 feat: add VLLMProvider (#1866)
Co-authored-by: cpacker <packercharles@gmail.com>
2024-10-11 15:58:12 -07:00
Matthew Zhou
5769e0c815 chore: add CLI CI test (#1858)
Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local>
2024-10-09 14:34:36 -07:00
Matt Zhou
62241e0d03 Remove groq old imports 2024-10-01 17:12:09 -07:00
Matt Zhou
79b078eeff Delete old code 2024-10-01 17:10:23 -07:00
Sarah Wooders
8ae1e64987 chore: migrate package name to letta (#1775)
Co-authored-by: Charles Packer <packercharles@gmail.com>
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com>
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2024-09-23 09:15:18 -07:00