ci: retrigger checks and fix linting

This commit is contained in:
Yamac Ay 2026-06-25 10:56:02 +02:00
parent be1ba7fe94
commit 453d8366fe
No known key found for this signature in database
GPG key ID: D113B438819CA628

View file

@ -182,22 +182,18 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig):
def _resolve_deployment_url(self) -> str:
client = litellm.module_level_client
deployments = client.get(
f"{self.base_url}/lm/deployments", headers=self.headers
).json()
deployments = client.get(f"{self.base_url}/lm/deployments", headers=self.headers).json()
valid: List[Tuple[str, str, str]] = []
for dep in deployments.get("resources", []):
if dep.get("scenarioId") != "orchestration":
continue
cfg = client.get(
f'{self.base_url}/lm/configurations/{dep["configurationId"]}',
f"{self.base_url}/lm/configurations/{dep['configurationId']}",
headers=self.headers,
).json()
if cfg.get("executableId") == "orchestration":
valid.append(
(dep["deploymentUrl"], dep["createdAt"], cfg.get("name", ""))
)
valid.append((dep["deploymentUrl"], dep["createdAt"], cfg.get("name", "")))
if not valid:
raise GenAIHubOrchestrationError(