This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -475,13 +475,14 @@ async def get_workspace_muxes(
475475 # implementation that fetches the mux rules from the database.
476476 return [
477477 v1_models .MuxRule (
478- provider = "openai" ,
478+ # Hardcode some UUID just for mocking purposes
479+ provider_id = "00000000-0000-0000-0000-000000000001" ,
479480 model = "gpt-3.5-turbo" ,
480481 matcher_type = v1_models .MuxMatcherType .file_regex ,
481482 matcher = ".*\\ .txt" ,
482483 ),
483484 v1_models .MuxRule (
484- provider = "anthropic " ,
485+ provider_id = "00000000-0000-0000-0000-000000000002 " ,
485486 model = "davinci" ,
486487 matcher_type = v1_models .MuxMatcherType .catch_all ,
487488 ),
Original file line number Diff line number Diff line change @@ -293,10 +293,10 @@ class MuxRule(pydantic.BaseModel):
293293 Represents a mux rule for a provider.
294294 """
295295
296- provider : str
296+ provider_id : str
297297 model : str
298298 # The type of matcher to use
299299 matcher_type : MuxMatcherType
300300 # The actual matcher to use. Note that
301301 # this depends on the matcher type.
302- matcher : Optional [str ]
302+ matcher : Optional [str ] = None
You can’t perform that action at this time.
0 commit comments