mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
• Removed the unused Pinecone REST‐client import; we now only import ServerlessSpec and the gRPC client. • Enhanced close() • Call self.client.close() to explicitly shut down the underlying gRPC channel. • Log success or a warning on failure. • Still tear down the thread‐pool executor afterward. • Context‐manager support • Added __enter__()/__exit__() so you can do: with PineconeClient() as client: client.insert(...) # automatically calls client.close() |
||
---|---|---|
.. | ||
data | ||
internal | ||
migrations | ||
models | ||
retrieval | ||
routers | ||
socket | ||
static | ||
storage | ||
test | ||
utils | ||
__init__.py | ||
alembic.ini | ||
config.py | ||
constants.py | ||
env.py | ||
functions.py | ||
main.py | ||
tasks.py |