Skip to content

mem0.add will call API twice #3723

@retanoj

Description

@retanoj

🐛 Describe the bug

I used FAISS as a vector database, and even with just a simple data addition action, I found that mem0 would call the embedded API twice.

prerequisite

python mem0ai==1.0.0

code

import logging

logging.basicConfig(
    level=logging.DEBUG,
    format='%(asctime)s - %(name)s - %(filename)s:%(lineno)d - %(levelname)s - %(message)s'
)

m = Memory.from_config(...)
m.add('foo', user_id='default')

call stack

once

Image

twice

Image

log

2025-11-06 19:21:18,775 - mem0.vector_stores.faiss - faiss.py:95 - INFO - Loaded FAISS index from test.faiss with 7 vectors
2025-11-06 19:21:18,781 - mem0.vector_stores.faiss - faiss.py:95 - INFO - Loaded FAISS index from .mem0/migrations_faiss/mem0migrations.faiss with 1 vectors
2025-11-06 19:21:20,198 - openai._base_client - _base_client.py:482 - DEBUG - Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-57934b69-511b-4d84-a4aa-b4d8b8148179', 'post_parser': <function Embeddings.create.<locals>.parser at 0x10a126200>, 'json_data': {'input': ['foo'], 'model': 'text-embedding-miffy-002', 'dimensions': '768', 'encoding_format': 'base64'}}
2025-11-06 19:22:19,735 - openai._base_client - _base_client.py:978 - DEBUG - Sending HTTP Request: POST https://.../v1/openai/native/embeddings
2025-11-06 19:22:19,739 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.started host='...' port=443 local_address=None timeout=5.0 socket_options=None
2025-11-06 19:22:19,752 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a678ec0>
2025-11-06 19:22:19,753 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x109b68b00> server_hostname='...' timeout=5.0
2025-11-06 19:22:19,764 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x109d3aad0>
2025-11-06 19:22:19,765 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-11-06 19:22:19,769 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.complete
2025-11-06 19:22:19,769 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-11-06 19:22:19,769 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.complete
2025-11-06 19:22:19,769 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-11-06 19:22:19,824 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty'), (b'Date', b'Thu, 06 Nov 2025 11:22:19 GMT'), (b'Content-Type', b'application/json'), (b'Connection', b'close'), (b'M-TraceId', b'-1259054236806672865'), (b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers')])
2025-11-06 19:22:19,826 - httpx - _client.py:1025 - INFO - HTTP Request: POST https://.../v1/openai/native/embeddings "HTTP/1.1 200 OK"
2025-11-06 19:22:19,826 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-11-06 19:22:19,827 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.complete
2025-11-06 19:22:19,827 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.started
2025-11-06 19:22:19,827 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.complete
2025-11-06 19:22:19,827 - openai._base_client - _base_client.py:1016 - DEBUG - HTTP Response: POST https://.../v1/openai/native/embeddings "200 OK" Headers([('server', 'openresty'), ('date', 'Thu, 06 Nov 2025 11:22:19 GMT'), ('content-type', 'application/json'), ('connection', 'close'), ('m-traceid', '-1259054236806672865'), ('vary', 'Origin'), ('vary', 'Access-Control-Request-Method'), ('vary', 'Access-Control-Request-Headers')])
2025-11-06 19:22:19,827 - openai._base_client - _base_client.py:1024 - DEBUG - request_id: None
2025-11-06 19:22:19,841 - mem0.memory.main - main.py:1068 - DEBUG - Creating memory with data='foo'
2025-11-06 19:22:19,842 - openai._base_client - _base_client.py:482 - DEBUG - Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-16def61d-add4-4421-bdd6-e4a59bb2a112', 'post_parser': <function Embeddings.create.<locals>.parser at 0x109b18cc0>, 'json_data': {'input': ['foo'], 'model': 'text-embedding-miffy-002', 'dimensions': '768', 'encoding_format': 'base64'}}
2025-11-06 19:23:07,271 - asyncio - selector_events.py:64 - DEBUG - Using selector: KqueueSelector
2025-11-06 19:23:07,272 - mem0.memory.main - main.py:1068 - DEBUG - Creating memory with data='foo'
2025-11-06 19:23:07,273 - openai._base_client - _base_client.py:482 - DEBUG - Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-9c22c20b-c994-4987-b725-5d754864b110', 'post_parser': <function Embeddings.create.<locals>.parser at 0x10a6b5b20>, 'json_data': {'input': ['foo'], 'model': 'text-embedding-miffy-002', 'dimensions': '768', 'encoding_format': 'base64'}}
2025-11-06 19:23:07,273 - openai._base_client - _base_client.py:978 - DEBUG - Sending HTTP Request: POST https://.../v1/openai/native/embeddings
2025-11-06 19:23:07,274 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.started host='...' port=443 local_address=None timeout=5.0 socket_options=None
2025-11-06 19:23:07,283 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a49f890>
2025-11-06 19:23:07,283 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x109b68b00> server_hostname='...' timeout=5.0
2025-11-06 19:23:07,296 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x109f02ea0>
2025-11-06 19:23:07,296 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-11-06 19:23:07,296 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.complete
2025-11-06 19:23:07,296 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-11-06 19:23:07,296 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.complete
2025-11-06 19:23:07,296 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-11-06 19:23:07,347 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty'), (b'Date', b'Thu, 06 Nov 2025 11:23:07 GMT'), (b'Content-Type', b'application/json'), (b'Connection', b'close'), (b'M-TraceId', b'5371362097606741746'), (b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers')])
2025-11-06 19:23:07,347 - httpx - _client.py:1025 - INFO - HTTP Request: POST https://.../v1/openai/native/embeddings "HTTP/1.1 200 OK"
2025-11-06 19:23:07,347 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-11-06 19:23:07,347 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.complete
2025-11-06 19:23:07,347 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.started
2025-11-06 19:23:07,347 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.complete
2025-11-06 19:23:07,347 - openai._base_client - _base_client.py:1016 - DEBUG - HTTP Response: POST https://.../v1/openai/native/embeddings "200 OK" Headers([('server', 'openresty'), ('date', 'Thu, 06 Nov 2025 11:23:07 GMT'), ('content-type', 'application/json'), ('connection', 'close'), ('m-traceid', '5371362097606741746'), ('vary', 'Origin'), ('vary', 'Access-Control-Request-Method'), ('vary', 'Access-Control-Request-Headers')])
2025-11-06 19:23:07,348 - openai._base_client - _base_client.py:1024 - DEBUG - request_id: None
2025-11-06 19:23:07,392 - mem0.vector_stores.faiss - faiss.py:225 - INFO - Inserted 1 vectors into collection test
2025-11-06 19:23:12,664 - mem0.memory.main - main.py:1068 - DEBUG - Creating memory with data='foo'
2025-11-06 19:23:12,665 - openai._base_client - _base_client.py:482 - DEBUG - Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-9d2e2339-5680-40f3-a110-5079e96cd29c', 'post_parser': <function Embeddings.create.<locals>.parser at 0x102d034c0>, 'json_data': {'input': ['foo'], 'model': 'text-embedding-miffy-002', 'dimensions': '768', 'encoding_format': 'base64'}}
2025-11-06 19:23:12,666 - openai._base_client - _base_client.py:978 - DEBUG - Sending HTTP Request: POST https://.../v1/openai/native/embeddings
2025-11-06 19:23:12,666 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.started host='...' port=443 local_address=None timeout=5.0 socket_options=None
2025-11-06 19:23:12,674 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x109f03820>
2025-11-06 19:23:12,674 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x109b68b00> server_hostname='...' timeout=5.0
2025-11-06 19:23:12,684 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x102a53ad0>
2025-11-06 19:23:12,684 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-11-06 19:23:12,684 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.complete
2025-11-06 19:23:12,684 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-11-06 19:23:12,684 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.complete
2025-11-06 19:23:12,684 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-11-06 19:23:12,711 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty'), (b'Date', b'Thu, 06 Nov 2025 11:23:12 GMT'), (b'Content-Type', b'application/json'), (b'Connection', b'close'), (b'M-TraceId', b'-8954491094264062722'), (b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers')])
2025-11-06 19:23:12,711 - httpx - _client.py:1025 - INFO - HTTP Request: POST https://.../v1/openai/native/embeddings "HTTP/1.1 200 OK"
2025-11-06 19:23:12,711 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-11-06 19:23:12,711 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.complete
2025-11-06 19:23:12,711 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.started
2025-11-06 19:23:12,711 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.complete
2025-11-06 19:23:12,712 - openai._base_client - _base_client.py:1016 - DEBUG - HTTP Response: POST https://.../v1/openai/native/embeddings "200 OK" Headers([('server', 'openresty'), ('date', 'Thu, 06 Nov 2025 11:23:12 GMT'), ('content-type', 'application/json'), ('connection', 'close'), ('m-traceid', '-8954491094264062722'), ('vary', 'Origin'), ('vary', 'Access-Control-Request-Method'), ('vary', 'Access-Control-Request-Headers')])
2025-11-06 19:23:12,712 - openai._base_client - _base_client.py:1024 - DEBUG - request_id: None
2025-11-06 19:23:12,715 - mem0.vector_stores.faiss - faiss.py:225 - INFO - Inserted 1 vectors into collection test
2025-11-06 19:24:23,794 - mem0.memory.main - main.py:1068 - DEBUG - Creating memory with data='foo'
2025-11-06 19:24:23,794 - openai._base_client - _base_client.py:482 - DEBUG - Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-0bf9b88e-5665-4c7a-839a-b956957e45c4', 'post_parser': <function Embeddings.create.<locals>.parser at 0x102d03100>, 'json_data': {'input': ['foo'], 'model': 'text-embedding-miffy-002', 'dimensions': '768', 'encoding_format': 'base64'}}
2025-11-06 19:24:23,795 - openai._base_client - _base_client.py:978 - DEBUG - Sending HTTP Request: POST https://.../v1/openai/native/embeddings
2025-11-06 19:24:23,795 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.started host='...' port=443 local_address=None timeout=5.0 socket_options=None
2025-11-06 19:24:23,808 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a692be0>
2025-11-06 19:24:23,808 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x109b68b00> server_hostname='...' timeout=5.0
2025-11-06 19:24:23,819 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a693130>
2025-11-06 19:24:23,819 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-11-06 19:24:23,819 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.complete
2025-11-06 19:24:23,819 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-11-06 19:24:23,819 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.complete
2025-11-06 19:24:23,819 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-11-06 19:24:23,858 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty'), (b'Date', b'Thu, 06 Nov 2025 11:24:23 GMT'), (b'Content-Type', b'application/json'), (b'Connection', b'close'), (b'M-TraceId', b'3011444748396221227'), (b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers')])
2025-11-06 19:24:23,859 - httpx - _client.py:1025 - INFO - HTTP Request: POST https://.../v1/openai/native/embeddings "HTTP/1.1 200 OK"
2025-11-06 19:24:23,859 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-11-06 19:24:23,859 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.complete
2025-11-06 19:24:23,859 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.started
2025-11-06 19:24:23,860 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.complete
2025-11-06 19:24:23,860 - openai._base_client - _base_client.py:1016 - DEBUG - HTTP Response: POST https://.../v1/openai/native/embeddings "200 OK" Headers([('server', 'openresty'), ('date', 'Thu, 06 Nov 2025 11:24:23 GMT'), ('content-type', 'application/json'), ('connection', 'close'), ('m-traceid', '3011444748396221227'), ('vary', 'Origin'), ('vary', 'Access-Control-Request-Method'), ('vary', 'Access-Control-Request-Headers')])
2025-11-06 19:24:23,860 - openai._base_client - _base_client.py:1024 - DEBUG - request_id: None
2025-11-06 19:24:23,865 - mem0.vector_stores.faiss - faiss.py:225 - INFO - Inserted 1 vectors into collection test
2025-11-06 19:25:22,652 - openai._base_client - _base_client.py:482 - DEBUG - Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-d6d6039a-30cb-4653-a2f4-c6524745447a', 'post_parser': <function Embeddings.create.<locals>.parser at 0x10a6b5580>, 'json_data': {'input': ['foo'], 'model': 'text-embedding-miffy-002', 'dimensions': '768', 'encoding_format': 'base64'}}
2025-11-06 19:25:22,653 - openai._base_client - _base_client.py:978 - DEBUG - Sending HTTP Request: POST https://.../v1/openai/native/embeddings
2025-11-06 19:25:22,653 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.started host='...' port=443 local_address=None timeout=5.0 socket_options=None
2025-11-06 19:25:22,662 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a6a4d50>
2025-11-06 19:25:22,662 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x109b68b00> server_hostname='...' timeout=5.0
2025-11-06 19:25:22,672 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a6a4e50>
2025-11-06 19:25:22,672 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-11-06 19:25:22,672 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.complete
2025-11-06 19:25:22,672 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-11-06 19:25:22,673 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.complete
2025-11-06 19:25:22,673 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-11-06 19:25:22,743 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty'), (b'Date', b'Thu, 06 Nov 2025 11:25:22 GMT'), (b'Content-Type', b'application/json'), (b'Connection', b'close'), (b'M-TraceId', b'8066474946218645167'), (b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers')])
2025-11-06 19:25:22,743 - httpx - _client.py:1025 - INFO - HTTP Request: POST https://.../v1/openai/native/embeddings "HTTP/1.1 200 OK"
2025-11-06 19:25:22,744 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-11-06 19:25:22,744 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.complete
2025-11-06 19:25:22,744 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.started
2025-11-06 19:25:22,744 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.complete
2025-11-06 19:25:22,744 - openai._base_client - _base_client.py:1016 - DEBUG - HTTP Response: POST https://.../v1/openai/native/embeddings "200 OK" Headers([('server', 'openresty'), ('date', 'Thu, 06 Nov 2025 11:25:22 GMT'), ('content-type', 'application/json'), ('connection', 'close'), ('m-traceid', '8066474946218645167'), ('vary', 'Origin'), ('vary', 'Access-Control-Request-Method'), ('vary', 'Access-Control-Request-Headers')])
2025-11-06 19:25:22,744 - openai._base_client - _base_client.py:1024 - DEBUG - request_id: None
2025-11-06 19:25:58,956 - openai._base_client - _base_client.py:482 - DEBUG - Request options: {'method': 'post', 'url': '/embeddings', 'files': None, 'idempotency_key': 'stainless-python-retry-3722bac2-a677-41ce-8327-7d1373f713fe', 'post_parser': <function Embeddings.create.<locals>.parser at 0x10a6b68e0>, 'json_data': {'input': ['foo'], 'model': 'text-embedding-miffy-002', 'dimensions': '768', 'encoding_format': 'base64'}}
2025-11-06 19:25:58,957 - openai._base_client - _base_client.py:978 - DEBUG - Sending HTTP Request: POST https://.../v1/openai/native/embeddings
2025-11-06 19:25:58,957 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.started host='...' port=443 local_address=None timeout=5.0 socket_options=None
2025-11-06 19:25:58,970 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a754e60>
2025-11-06 19:25:58,970 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x109b68b00> server_hostname='...' timeout=5.0
2025-11-06 19:25:58,980 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a754b90>
2025-11-06 19:25:58,980 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-11-06 19:25:58,980 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.complete
2025-11-06 19:25:58,980 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-11-06 19:25:58,981 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.complete
2025-11-06 19:25:58,981 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-11-06 19:25:59,047 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty'), (b'Date', b'Thu, 06 Nov 2025 11:25:59 GMT'), (b'Content-Type', b'application/json'), (b'Connection', b'close'), (b'M-TraceId', b'-7212373983967901013'), (b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers')])
2025-11-06 19:25:59,048 - httpx - _client.py:1025 - INFO - HTTP Request: POST https://.../v1/openai/native/embeddings "HTTP/1.1 200 OK"
2025-11-06 19:25:59,048 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-11-06 19:25:59,049 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.complete
2025-11-06 19:25:59,049 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.started
2025-11-06 19:25:59,050 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.complete
2025-11-06 19:25:59,050 - openai._base_client - _base_client.py:1016 - DEBUG - HTTP Response: POST https://.../v1/openai/native/embeddings "200 OK" Headers([('server', 'openresty'), ('date', 'Thu, 06 Nov 2025 11:25:59 GMT'), ('content-type', 'application/json'), ('connection', 'close'), ('m-traceid', '-7212373983967901013'), ('vary', 'Origin'), ('vary', 'Access-Control-Request-Method'), ('vary', 'Access-Control-Request-Headers')])
2025-11-06 19:25:59,050 - openai._base_client - _base_client.py:1024 - DEBUG - request_id: None
2025-11-06 19:28:23,481 - openai._base_client - _base_client.py:978 - DEBUG - Sending HTTP Request: POST https://.../v1/openai/native/embeddings
2025-11-06 19:28:23,483 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.started host='...' port=443 local_address=None timeout=5.0 socket_options=None
2025-11-06 19:28:23,492 - httpcore.connection - _trace.py:47 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a699550>
2025-11-06 19:28:23,492 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.started ssl_context=<ssl.SSLContext object at 0x109b68b00> server_hostname='...' timeout=5.0
2025-11-06 19:28:23,502 - httpcore.connection - _trace.py:47 - DEBUG - start_tls.complete return_value=<httpcore._backends.sync.SyncStream object at 0x10a699390>
2025-11-06 19:28:23,503 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.started request=<Request [b'POST']>
2025-11-06 19:28:23,503 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_headers.complete
2025-11-06 19:28:23,503 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.started request=<Request [b'POST']>
2025-11-06 19:28:23,503 - httpcore.http11 - _trace.py:47 - DEBUG - send_request_body.complete
2025-11-06 19:28:23,504 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.started request=<Request [b'POST']>
2025-11-06 19:28:23,571 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Server', b'openresty'), (b'Date', b'Thu, 06 Nov 2025 11:28:23 GMT'), (b'Content-Type', b'application/json'), (b'Connection', b'close'), (b'M-TraceId', b'6639463990764791937'), (b'Vary', b'Origin'), (b'Vary', b'Access-Control-Request-Method'), (b'Vary', b'Access-Control-Request-Headers')])
2025-11-06 19:28:23,572 - httpx - _client.py:1025 - INFO - HTTP Request: POST https://.../v1/openai/native/embeddings "HTTP/1.1 200 OK"
2025-11-06 19:28:23,572 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.started request=<Request [b'POST']>
2025-11-06 19:28:23,573 - httpcore.http11 - _trace.py:47 - DEBUG - receive_response_body.complete
2025-11-06 19:28:23,573 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.started
2025-11-06 19:28:23,573 - httpcore.http11 - _trace.py:47 - DEBUG - response_closed.complete
2025-11-06 19:28:23,574 - openai._base_client - _base_client.py:1016 - DEBUG - HTTP Response: POST https://.../v1/openai/native/embeddings "200 OK" Headers([('server', 'openresty'), ('date', 'Thu, 06 Nov 2025 11:28:23 GMT'), ('content-type', 'application/json'), ('connection', 'close'), ('m-traceid', '6639463990764791937'), ('vary', 'Origin'), ('vary', 'Access-Control-Request-Method'), ('vary', 'Access-Control-Request-Headers')])
2025-11-06 19:28:23,574 - openai._base_client - _base_client.py:1024 - DEBUG - request_id: None
2025-11-06 19:28:23,588 - mem0.vector_stores.faiss - faiss.py:225 - INFO - Inserted 1 vectors into collection test

Metadata

Metadata

Assignees

No one assigned

    Labels

    OSSOpen Source - https://github.com/mem0ai/mem0bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions