Skip to content

[Bug] Context Length Exceeds Model Limits - Tokens Dropped Silently #1983

Description

@anshul23102

Description

LLM context can exceed model token limit. Extra tokens silently dropped. Important information lost.

Expected Behavior

Check context length before inference. Raise error if exceeds limit.

Actual Behavior

File: src/context/manager.py
No length validation: llm.generate(context)

GSSoC Points Estimate: Level 1 (Bug)

Suggested Labels

  • gssoc:approved
  • type:bug
  • severity:medium
  • area:context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions