feat(llm): route adapters by provider

This commit is contained in:
Yichen Jiang
2026-07-14 21:57:52 +08:00
parent a0359bc4a9
commit e547980d77
218 changed files with 2605 additions and 1844 deletions
+2
View File
@@ -18,6 +18,7 @@ class DeepSeekHarnessConfig:
intentionally override or inject variables for a subprocess.
"""
provider: str = "deepseek"
model: str = "deepseek-v4-flash"
cwd: str | None = None
runtime_cwd: str | None = None
@@ -97,6 +98,7 @@ class DeepSeekHarness:
self._client.start()
self._client.initialize(
cwd=self._cwd,
provider=self.config.provider,
model=self.config.model,
)
self._initialized = True
@@ -115,10 +115,12 @@ class HarnessClient:
self,
*,
cwd: str,
provider: str,
model: str,
) -> InitializeResponse:
payload: JsonObject = {
"cwd": str(Path(cwd).resolve()),
"provider": provider,
"model": model,
}
try: