Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: lmstudio tests and integration
jnjpng9d72955e7f0d
diff --git a/letta/schemas/providers/lmstudio.py b/letta/schemas/providers/lmstudio.pyindex 910e37da0..b04d9825d 100644--- a/letta/schemas/providers/lmstudio.py+++ b/letta/schemas/providers/lmstudio.py@@ -55,7 +55,7 @@ class LMStudioOpenAIProvider(OpenAIProvider):LLMConfig(model=model_name,model_endpoint_type="openai",- model_endpoint=self.base_url,+ model_endpoint=self.model_endpoint_url,context_window=context_window_size,handle=self.get_handle(model_name),compatibility_type=compatibility_type,@@ -94,7 +94,7 @@ class LMStudioOpenAIProvider(OpenAIProvider):EmbeddingConfig(embedding_model=model_name,embedding_endpoint_type="openai",- embedding_endpoint=self.base_url,+ embedding_endpoint=self.model_endpoint_url,embedding_dim=768, # Default embedding dimension, not context windowembedding_chunk_size=DEFAULT_EMBEDDING_CHUNK_SIZE, # NOTE: max is 2048handle=self.get_handle(model_name),diff --git a/tests/configs/llm_model_configs/lmstudio.json b/tests/configs/llm_model_configs/lmstudio.jsonindex a0f7cd93e..316231606 100644--- a/tests/configs/llm_model_configs/lmstudio.json+++ b/tests/configs/llm_model_configs/lmstudio.json@@ -2,7 +2,7 @@"context_window": 8192,"model": "qwen2.5-7b-instruct-1m","model_endpoint_type": "openai",- "model_endpoint": "http://127.0.0.1:1234/v1",+ "model_endpoint": "http://127.0.0.1:1234/api/v0","model_wrapper": null,"provider_name": "lmstudio_openai"}diff --git a/tests/integration_test_send_message.py b/tests/integration_test_send_message.pyindex 1e1b35560..ed44ed671 100644--- a/tests/integration_test_send_message.py+++ b/tests/integration_test_send_message.py@@ -110,11 +110,7 @@ USER_MESSAGE_BASE64_IMAGE: List[MessageCreate] = []# configs for models that are to dumb to do much other than messaging-limited_configs = [- "ollama.json",- "together-qwen-2.5-72b-instruct.json",- "vllm.json",-]+limited_configs = ["ollama.json", "together-qwen-2.5-72b-instruct.json", "vllm.json", "lmstudio.json"]all_configs = ["openai-gpt-4o-mini.json",