cocoindex-code 0.2.30__tar.gz → 0.2.31__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.
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/PKG-INFO +1 -1
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/_version.py +2 -2
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/litellm_embedder.py +3 -3
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/.gitignore +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/LICENSE +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/README.md +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/pyproject.toml +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/__init__.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/__main__.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/_daemon_paths.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/chunking.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/cli.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/client.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/daemon.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/embedder_defaults.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/embedder_params.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/indexer.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/project.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/protocol.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/query.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/schema.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/server.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/settings.py +0 -0
- {cocoindex_code-0.2.30 → cocoindex_code-0.2.31}/src/cocoindex_code/shared.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cocoindex-code
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.31
|
|
4
4
|
Summary: MCP server for indexing and querying codebases using CocoIndex
|
|
5
5
|
Project-URL: Homepage, https://github.com/cocoindex-io/cocoindex-code
|
|
6
6
|
Project-URL: Repository, https://github.com/cocoindex-io/cocoindex-code
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.2.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 2,
|
|
21
|
+
__version__ = version = '0.2.31'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 31)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -13,8 +13,6 @@ import numpy as np
|
|
|
13
13
|
from cocoindex.ops.litellm import LiteLLMEmbedder, litellm
|
|
14
14
|
from numpy.typing import NDArray
|
|
15
15
|
|
|
16
|
-
litellm.drop_params = True
|
|
17
|
-
|
|
18
16
|
logger = logging.getLogger(__name__)
|
|
19
17
|
|
|
20
18
|
_RATE_LIMIT_DELAY_RE = re.compile(r"Please try again in ([0-9.]+)(ms|s)", re.IGNORECASE)
|
|
@@ -84,10 +82,12 @@ class PacedLiteLLMEmbedder(LiteLLMEmbedder):
|
|
|
84
82
|
if self._next_request_at > now:
|
|
85
83
|
await asyncio.sleep(self._next_request_at - now)
|
|
86
84
|
|
|
85
|
+
if not self._model.startswith(("voyage/", "bedrock/")):
|
|
86
|
+
kwargs["encoding_format"] = "float"
|
|
87
|
+
kwargs["drop_params"] = True
|
|
87
88
|
response = await self._aembedding_with_rate_limit_retries(
|
|
88
89
|
model=self._model,
|
|
89
90
|
input=input,
|
|
90
|
-
encoding_format="float",
|
|
91
91
|
**kwargs,
|
|
92
92
|
)
|
|
93
93
|
|
|
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
|