-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdebug_output.txt
More file actions
33 lines (33 loc) · 1.52 KB
/
Copy pathdebug_output.txt
File metadata and controls
33 lines (33 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
108: ''
109: ' #: Provider name → key field name. Configuration knowledge only; provider'
110: ' #: HTTP behaviour lives in the infrastructure adapters.'
111: ' _PROVIDER_KEY_FIELDS: ClassVar[dict[str, str]] = {'
112: ' "openai": "openai_key",'
113: ' "anthropic": "anthropic_key",'
114: ' "openrouter": "openrouter_key",'
115: ' "gemini": "gemini_key",'
116: ' "deepseek": "deepseek_key",'
117: ' "grok": "grok_key",'
118: ' "lmstudio": "lmstudio_key",'
119: ' "ollama": "ollama_key",'
120: ' "openai_compatible": "openai_compatible_key",'
121: ' }'
122: ''
123: ' def api_key_for(self, provider: str) -> str:'
124: ' """Return the plaintext API key configured for ``provider`` (``""`` when absent).'
125: ''
126: ' The returned value is only used to build the adapter; it is never'
127: ' serialized back into diagnostics.'
128: ' """'
129: ' field = self._PROVIDER_KEY_FIELDS.get((provider or "").strip().lower())'
130: ' if field is None:'
131: ' return ""'
132: ' value: SecretStr = getattr(self, field)'
133: ' return value.get_secret_value()'
134: ''
135: ''
136: 'class ResourceSettings(BaseModel):'
137: ' """Resource-governance settings (safe defaults prioritize host stability).'
138: ''
139: ' These values drive the centralized :class:`hunterx.resource.ResourceGovernor`'
140: ' which manages the resource envelope of the whole mission process tree. The'