MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / create_fallback_models

Function create_fallback_models

codewiki/src/be/llm_services.py:133–137  ·  view source on GitHub ↗

Create fallback models chain from configuration.

(config: Config)

Source from the content-addressed store, hash-verified

131 and extends it). OpenAI-compatible proxies such as LiteLLM forward the
132 markers to providers that support prompt caching; providers that don't
133 either ignore the field or reject the request with a 4xx, in which case the
134 request is retried once without markers and the (base_url, model) pair is
135 remembered so later calls skip injection entirely.
136 """
137
138 # Plain class attributes (not dataclass fields) so instances copied without
139 # __init__ still resolve them.
140 _prompt_caching_enabled = False

Callers 2

__init__Method · 0.90

Calls 2

create_main_modelFunction · 0.85
create_fallback_modelFunction · 0.85

Tested by

no test coverage detected