graphiti/graphiti_core
supmo668 db7c179991 Fix: Remove unnecessary max_tokens cap in AnthropicClient
Removes the hacky min() workaround that was capping max_tokens to
DEFAULT_MAX_TOKENS (8192) in the AnthropicClient. This fix allows
the client to respect the max_tokens parameter passed by callers,
particularly for edge extraction operations that may require higher
token limits (e.g., 16384).

The new implementation aligns with how other LLM clients (OpenAI,
Gemini) handle max_tokens by using the provided value or falling
back to the instance max_tokens without an arbitrary cap.

Resolves TODO in anthropic_client.py:207-208.
2025-11-02 21:26:48 -08:00
..
cross_encoder fix typo and model selector (#843) 2025-08-18 11:15:45 -04:00
driver feat: MCP Server v1.0.0 - Modular architecture with multi-provider support (#1024) 2025-10-30 22:59:01 -07:00
embedder OpenSearch Integration for Neo4j (#896) 2025-09-09 10:51:46 -04:00
llm_client Fix: Remove unnecessary max_tokens cap in AnthropicClient 2025-11-02 21:26:48 -08:00
migrations cleanup (#894) 2025-09-05 11:30:46 -04:00
models Remove integration markers from database tests (#1000) 2025-10-12 10:16:34 -07:00
prompts Remove JSON indentation from prompts to reduce token usage (#985) 2025-10-06 16:08:43 -07:00
search update mmr to use bulk load overrides (#1029) 2025-10-29 09:51:58 -04:00
telemetry feat: add telemetry with PostHog and update Docker configurations (#633) 2025-06-27 12:23:30 -07:00
utils Search client update (#1026) 2025-10-26 22:07:36 -04:00
__init__.py
edges.py add search and graph operations interfaces (#984) 2025-10-07 13:34:37 -04:00
errors.py Add group ID validation and error handling (#618) 2025-06-24 09:33:54 -07:00
graph_queries.py Graph quality updates (#922) 2025-09-23 17:53:39 -04:00
graphiti.py Add OpenTelemetry distributed tracing support (#982) 2025-10-05 12:26:14 -07:00
graphiti_types.py Add OpenTelemetry distributed tracing support (#982) 2025-10-05 12:26:14 -07:00
helpers.py fix-fulltext-syntax-error (#914) 2025-09-23 10:52:44 -04:00
nodes.py fix deprecated cypher pattern (#993) 2025-10-09 16:12:55 -04:00
py.typed
tracer.py Add OpenTelemetry distributed tracing support (#982) 2025-10-05 12:26:14 -07:00