letta-nightly 0.4.1.dev20241010104112__tar.gz → 0.4.1.dev20241011104054__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of letta-nightly might be problematic. Click here for more details.
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/PKG-INFO +1 -1
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/cli/cli.py +25 -2
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/constants.py +21 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/openai.py +5 -2
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/providers.py +22 -5
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/server.py +3 -2
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/settings.py +1 -1
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/pyproject.toml +1 -1
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/LICENSE +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/README.md +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/__main__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent_store/chroma.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent_store/db.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent_store/lancedb.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent_store/milvus.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent_store/qdrant.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent_store/storage.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/benchmark/benchmark.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/benchmark/constants.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/cli/cli_config.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/cli/cli_load.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/client/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/client/admin.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/client/client.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/client/streaming.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/client/utils.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/config.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/credentials.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/data_sources/connectors.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/embeddings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/errors.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/functions/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/functions/function_sets/base.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/functions/function_sets/extras.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/functions/functions.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/functions/helpers.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/functions/schema_generator.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/humans/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/humans/examples/basic.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/humans/examples/cs_phd.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/interface.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/anthropic.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/azure_openai.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/azure_openai_constants.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/cohere.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/google_ai.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/helpers.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/llm_api/llm_api_tools.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/README.md +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/chat_completion_proxy.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/constants.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/function_parser.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/grammars/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/grammars/gbnf_grammar_generator.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/grammars/json.gbnf +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/grammars/json_func_calls_with_inner_thoughts.gbnf +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/json_parser.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/koboldcpp/api.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/koboldcpp/settings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llamacpp/api.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llamacpp/settings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/airoboros.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/chatml.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/configurable_wrapper.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/dolphin.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/llama3.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/simple_summary_wrapper.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/wrapper_base.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/llm_chat_completion_wrappers/zephyr.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/lmstudio/api.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/lmstudio/settings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/ollama/api.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/ollama/settings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/settings/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/settings/deterministic_mirostat.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/settings/settings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/settings/simple.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/utils.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/vllm/api.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/webui/api.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/webui/legacy_api.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/webui/legacy_settings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/local_llm/webui/settings.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/log.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/main.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/memory.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/metadata.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/openai_backcompat/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/openai_backcompat/openai_object.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/persistence_manager.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/anna_pa.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/google_search_persona.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/memgpt_doc.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/memgpt_starter.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/sam.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/sam_pov.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/sam_simple_pov_gpt35.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/personas/examples/sqldb/test.db +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/gpt_summarize.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/gpt_system.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_base.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_chat.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_chat_compressed.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_chat_fstring.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_doc.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_gpt35_extralong.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_intuitive_knowledge.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/prompts/system/memgpt_modified_chat.txt +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/pytest.ini +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/agent.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/api_key.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/block.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/document.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/embedding_config.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/enums.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/health.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/job.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/letta_base.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/letta_message.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/letta_request.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/letta_response.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/llm_config.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/memory.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/message.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/openai/chat_completion_request.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/openai/chat_completion_response.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/openai/chat_completions.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/openai/embedding_response.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/openai/openai.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/organization.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/passage.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/source.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/tool.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/usage.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/user.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/constants.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/admin/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/admin/agents.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/admin/tools.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/admin/users.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/app.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/auth/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/auth/index.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/auth_token.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/interface.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/openai/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/openai/assistants/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/openai/assistants/assistants.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/openai/assistants/schemas.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/openai/assistants/threads.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/openai/chat_completions/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/openai/chat_completions/chat_completions.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/agents.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/blocks.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/health.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/jobs.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/llms.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/organizations.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/sources.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/tools.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/routers/v1/users.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/static_files.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/rest_api/utils.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/startup.sh +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/static_files/assets/index-3ab03d5b.css +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/static_files/assets/index-9a9c449b.js +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/static_files/favicon.ico +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/static_files/index.html +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/static_files/memgpt_logo_transparent.png +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/utils.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/ws_api/__init__.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/ws_api/example_client.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/ws_api/interface.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/ws_api/protocol.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/server/ws_api/server.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/streaming_interface.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/system.py +0 -0
- {letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/utils.py +0 -0
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/cli/cli.py
RENAMED
|
@@ -14,7 +14,9 @@ from letta.constants import CLI_WARNING_PREFIX, LETTA_DIR
|
|
|
14
14
|
from letta.local_llm.constants import ASSISTANT_MESSAGE_CLI_SYMBOL
|
|
15
15
|
from letta.log import get_logger
|
|
16
16
|
from letta.metadata import MetadataStore
|
|
17
|
+
from letta.schemas.embedding_config import EmbeddingConfig
|
|
17
18
|
from letta.schemas.enums import OptionState
|
|
19
|
+
from letta.schemas.llm_config import LLMConfig
|
|
18
20
|
from letta.schemas.memory import ChatMemory, Memory
|
|
19
21
|
from letta.server.server import logger as server_logger
|
|
20
22
|
|
|
@@ -233,25 +235,46 @@ def run(
|
|
|
233
235
|
# choose from list of llm_configs
|
|
234
236
|
llm_configs = client.list_llm_configs()
|
|
235
237
|
llm_options = [llm_config.model for llm_config in llm_configs]
|
|
238
|
+
|
|
239
|
+
# TODO move into LLMConfig as a class method?
|
|
240
|
+
def prettify_llm_config(llm_config: LLMConfig) -> str:
|
|
241
|
+
return f"{llm_config.model}" + f" ({llm_config.model_endpoint})" if llm_config.model_endpoint else ""
|
|
242
|
+
|
|
243
|
+
llm_choices = [questionary.Choice(title=prettify_llm_config(llm_config), value=llm_config) for llm_config in llm_configs]
|
|
244
|
+
|
|
236
245
|
# select model
|
|
237
246
|
if len(llm_options) == 0:
|
|
238
247
|
raise ValueError("No LLM models found. Please enable a provider.")
|
|
239
248
|
elif len(llm_options) == 1:
|
|
240
249
|
llm_model_name = llm_options[0]
|
|
241
250
|
else:
|
|
242
|
-
llm_model_name = questionary.select("Select LLM model:", choices=
|
|
251
|
+
llm_model_name = questionary.select("Select LLM model:", choices=llm_choices).ask().model
|
|
243
252
|
llm_config = [llm_config for llm_config in llm_configs if llm_config.model == llm_model_name][0]
|
|
244
253
|
|
|
245
254
|
# choose form list of embedding configs
|
|
246
255
|
embedding_configs = client.list_embedding_configs()
|
|
247
256
|
embedding_options = [embedding_config.embedding_model for embedding_config in embedding_configs]
|
|
257
|
+
|
|
258
|
+
# TODO move into EmbeddingConfig as a class method?
|
|
259
|
+
def prettify_embed_config(embedding_config: EmbeddingConfig) -> str:
|
|
260
|
+
return (
|
|
261
|
+
f"{embedding_config.embedding_model}" + f" ({embedding_config.embedding_endpoint})"
|
|
262
|
+
if embedding_config.embedding_endpoint
|
|
263
|
+
else ""
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
embedding_choices = [
|
|
267
|
+
questionary.Choice(title=prettify_embed_config(embedding_config), value=embedding_config)
|
|
268
|
+
for embedding_config in embedding_configs
|
|
269
|
+
]
|
|
270
|
+
|
|
248
271
|
# select model
|
|
249
272
|
if len(embedding_options) == 0:
|
|
250
273
|
raise ValueError("No embedding models found. Please enable a provider.")
|
|
251
274
|
elif len(embedding_options) == 1:
|
|
252
275
|
embedding_model_name = embedding_options[0]
|
|
253
276
|
else:
|
|
254
|
-
embedding_model_name = questionary.select("Select embedding model:", choices=
|
|
277
|
+
embedding_model_name = questionary.select("Select embedding model:", choices=embedding_choices).ask().embedding_model
|
|
255
278
|
embedding_config = [
|
|
256
279
|
embedding_config for embedding_config in embedding_configs if embedding_config.embedding_model == embedding_model_name
|
|
257
280
|
][0]
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/constants.py
RENAMED
|
@@ -75,6 +75,27 @@ NON_USER_MSG_PREFIX = "[This is an automated system message hidden from the user
|
|
|
75
75
|
LLM_MAX_TOKENS = {
|
|
76
76
|
"DEFAULT": 8192,
|
|
77
77
|
## OpenAI models: https://platform.openai.com/docs/models/overview
|
|
78
|
+
# "o1-preview
|
|
79
|
+
"chatgpt-4o-latest": 128000,
|
|
80
|
+
# "o1-preview-2024-09-12
|
|
81
|
+
"gpt-4o-2024-08-06": 128000,
|
|
82
|
+
"gpt-4-turbo-preview": 128000,
|
|
83
|
+
"gpt-4o": 128000,
|
|
84
|
+
"gpt-3.5-turbo-instruct": 16385,
|
|
85
|
+
"gpt-4-0125-preview": 128000,
|
|
86
|
+
"gpt-3.5-turbo-0125": 16385,
|
|
87
|
+
# "babbage-002": 128000,
|
|
88
|
+
# "davinci-002": 128000,
|
|
89
|
+
"gpt-4-turbo-2024-04-09": 128000,
|
|
90
|
+
# "gpt-4o-realtime-preview-2024-10-01
|
|
91
|
+
"gpt-4-turbo": 8192,
|
|
92
|
+
"gpt-4o-2024-05-13": 128000,
|
|
93
|
+
# "o1-mini
|
|
94
|
+
# "o1-mini-2024-09-12
|
|
95
|
+
# "gpt-3.5-turbo-instruct-0914
|
|
96
|
+
"gpt-4o-mini": 128000,
|
|
97
|
+
# "gpt-4o-realtime-preview
|
|
98
|
+
"gpt-4o-mini-2024-07-18": 128000,
|
|
78
99
|
# gpt-4
|
|
79
100
|
"gpt-4-1106-preview": 128000,
|
|
80
101
|
"gpt-4": 8192,
|
|
@@ -41,7 +41,9 @@ from letta.utils import smart_urljoin
|
|
|
41
41
|
OPENAI_SSE_DONE = "[DONE]"
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
def openai_get_model_list(
|
|
44
|
+
def openai_get_model_list(
|
|
45
|
+
url: str, api_key: Union[str, None], fix_url: Optional[bool] = False, extra_params: Optional[dict] = None
|
|
46
|
+
) -> dict:
|
|
45
47
|
"""https://platform.openai.com/docs/api-reference/models/list"""
|
|
46
48
|
from letta.utils import printd
|
|
47
49
|
|
|
@@ -60,7 +62,8 @@ def openai_get_model_list(url: str, api_key: Union[str, None], fix_url: Optional
|
|
|
60
62
|
|
|
61
63
|
printd(f"Sending request to {url}")
|
|
62
64
|
try:
|
|
63
|
-
|
|
65
|
+
# TODO add query param "tool" to be true
|
|
66
|
+
response = requests.get(url, headers=headers, params=extra_params)
|
|
64
67
|
response.raise_for_status() # Raises HTTPError for 4XX/5XX status
|
|
65
68
|
response = response.json() # convert to dict from string
|
|
66
69
|
printd(f"response = {response}")
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/providers.py
RENAMED
|
@@ -53,23 +53,40 @@ class LettaProvider(Provider):
|
|
|
53
53
|
class OpenAIProvider(Provider):
|
|
54
54
|
name: str = "openai"
|
|
55
55
|
api_key: str = Field(..., description="API key for the OpenAI API.")
|
|
56
|
-
base_url: str = "
|
|
56
|
+
base_url: str = Field(..., description="Base URL for the OpenAI API.")
|
|
57
57
|
|
|
58
58
|
def list_llm_models(self) -> List[LLMConfig]:
|
|
59
59
|
from letta.llm_api.openai import openai_get_model_list
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
# Some hardcoded support for OpenRouter (so that we only get models with tool calling support)...
|
|
62
|
+
# See: https://openrouter.ai/docs/requests
|
|
63
|
+
extra_params = {"supported_parameters": "tools"} if "openrouter.ai" in self.base_url else None
|
|
64
|
+
response = openai_get_model_list(self.base_url, api_key=self.api_key, extra_params=extra_params)
|
|
65
|
+
|
|
66
|
+
assert "data" in response, f"OpenAI model query response missing 'data' field: {response}"
|
|
63
67
|
|
|
64
68
|
configs = []
|
|
65
|
-
for
|
|
66
|
-
|
|
69
|
+
for model in response["data"]:
|
|
70
|
+
assert "id" in model, f"OpenAI model missing 'id' field: {model}"
|
|
71
|
+
model_name = model["id"]
|
|
72
|
+
|
|
73
|
+
if "context_length" in model:
|
|
74
|
+
# Context length is returned in OpenRouter as "context_length"
|
|
75
|
+
context_window_size = model["context_length"]
|
|
76
|
+
else:
|
|
77
|
+
context_window_size = self.get_model_context_window_size(model_name)
|
|
67
78
|
|
|
68
79
|
if not context_window_size:
|
|
69
80
|
continue
|
|
70
81
|
configs.append(
|
|
71
82
|
LLMConfig(model=model_name, model_endpoint_type="openai", model_endpoint=self.base_url, context_window=context_window_size)
|
|
72
83
|
)
|
|
84
|
+
|
|
85
|
+
# for OpenAI, sort in reverse order
|
|
86
|
+
if self.base_url == "https://api.openai.com/v1":
|
|
87
|
+
# alphnumeric sort
|
|
88
|
+
configs.sort(key=lambda x: x.model, reverse=True)
|
|
89
|
+
|
|
73
90
|
return configs
|
|
74
91
|
|
|
75
92
|
def list_embedding_models(self) -> List[EmbeddingConfig]:
|
|
@@ -50,6 +50,7 @@ from letta.providers import (
|
|
|
50
50
|
LettaProvider,
|
|
51
51
|
OllamaProvider,
|
|
52
52
|
OpenAIProvider,
|
|
53
|
+
Provider,
|
|
53
54
|
VLLMProvider,
|
|
54
55
|
)
|
|
55
56
|
from letta.schemas.agent import AgentState, AgentType, CreateAgent, UpdateAgentState
|
|
@@ -261,9 +262,9 @@ class SyncServer(Server):
|
|
|
261
262
|
self.add_default_tools(module_name="base")
|
|
262
263
|
|
|
263
264
|
# collect providers (always has Letta as a default)
|
|
264
|
-
self._enabled_providers = [LettaProvider()]
|
|
265
|
+
self._enabled_providers: List[Provider] = [LettaProvider()]
|
|
265
266
|
if model_settings.openai_api_key:
|
|
266
|
-
self._enabled_providers.append(OpenAIProvider(api_key=model_settings.openai_api_key))
|
|
267
|
+
self._enabled_providers.append(OpenAIProvider(api_key=model_settings.openai_api_key, base_url=model_settings.openai_api_base))
|
|
267
268
|
if model_settings.anthropic_api_key:
|
|
268
269
|
self._enabled_providers.append(AnthropicProvider(api_key=model_settings.anthropic_api_key))
|
|
269
270
|
if model_settings.ollama_base_url:
|
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/__init__.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/__main__.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/agent.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/config.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/credentials.py
RENAMED
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/embeddings.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/errors.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/interface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/log.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/main.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/memory.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/metadata.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/pytest.ini
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/schemas/job.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/system.py
RENAMED
|
File without changes
|
{letta_nightly-0.4.1.dev20241010104112 → letta_nightly-0.4.1.dev20241011104054}/letta/utils.py
RENAMED
|
File without changes
|