MCPcopy
hub / github.com/langroid/langroid / completion_context_length

Method completion_context_length

langroid/language_models/base.py:705–706  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

703 return self.config.chat_context_length or DEFAULT_CONTEXT_LENGTH
704
705 def completion_context_length(self) -> int:
706 return self.config.completion_context_length or DEFAULT_CONTEXT_LENGTH
707
708 def chat_cost(self) -> Tuple[float, float, float]:
709 """

Callers 3

llm_response_asyncMethod · 0.45
llm_responseMethod · 0.45
summarize_docsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected