Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 7dd4019

Browse files
Fix expected kwargs of ModelRoute (#926)
We were using the incorrect kwargs. Probably some old code
1 parent d9d856d commit 7dd4019

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegate/workspaces/crud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ async def get_routing_for_mux(self, mux) -> rulematcher.ModelRoute:
317317
raise WorkspaceCrudError(f"Auth material for provider {mux.provider_id} does not exist")
318318

319319
return rulematcher.ModelRoute(
320-
provider=dbprov,
320+
endpoint=dbprov,
321321
model=dbm,
322-
auth=dbauth,
322+
auth_material=dbauth,
323323
)
324324

325325
async def get_routing_for_db_mux(self, mux: MuxRule) -> rulematcher.ModelRoute:

0 commit comments

Comments
 (0)