Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: update authorization header to use X-BARE-PASSWORD format
Theo Conradsa0551a715357
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.ymlindex 189489614..620b793fc 100644--- a/.github/workflows/docker-image.yml+++ b/.github/workflows/docker-image.yml@@ -8,7 +8,7 @@ on:jobs:build:runs-on: ubuntu-latest-+steps:- name: Login to Docker Hubuses: docker/login-action@v3@@ -17,7 +17,7 @@ jobs:password: ${{ secrets.DOCKERHUB_TOKEN }}- uses: actions/checkout@v3-+- name: Set up QEMUuses: docker/setup-qemu-action@v3@@ -38,4 +38,3 @@ jobs:letta/letta:latestmemgpt/letta:${{ env.CURRENT_VERSION }}memgpt/letta:latest-diff --git a/letta/client/client.py b/letta/client/client.pyindex ae75e9eb1..a3f0f256b 100644--- a/letta/client/client.py+++ b/letta/client/client.py@@ -428,7 +428,7 @@ class RESTClient(AbstractClient):super().__init__(debug=debug)self.base_url = base_urlself.api_prefix = api_prefix- self.headers = {"accept": "application/json", "authorization": f"Bearer {token}"}+ self.headers = {"accept": "application/json", "X-BARE-PASSWORD": f"password {token}"}if headers:self.headers.update(headers)self._default_llm_config = default_llm_configdiff --git a/letta/functions/schema_generator.py b/letta/functions/schema_generator.pyindex 6f5bb52f9..5ba9d2bfd 100644--- a/letta/functions/schema_generator.py+++ b/letta/functions/schema_generator.py@@ -3,7 +3,6 @@ from typing import Any, Dict, List, Optional, Type, Union, get_args, get_originfrom docstring_parser import parsefrom pydantic import BaseModel-from pydantic.v1 import BaseModel as V1BaseModeldef is_optional(annotation):diff --git a/tests/test_tool_sandbox/restaurant_management_system/adjust_menu_prices.py b/tests/test_tool_sandbox/restaurant_management_system/adjust_menu_prices.pyindex 57adc1639..1e5c090e6 100644--- a/tests/test_tool_sandbox/restaurant_management_system/adjust_menu_prices.py+++ b/tests/test_tool_sandbox/restaurant_management_system/adjust_menu_prices.py@@ -8,7 +8,6 @@ def adjust_menu_prices(percentage: float) -> str:str: A formatted string summarizing the price adjustments."""import cowsay-from core.menu import Menu, MenuItem # Import a class from the codebasefrom core.utils import format_currency # Use a utility function to test imports