semantic-router
semantic-router copied to clipboard
EncoderType does not support "Azure"
Versions
- Python: 3.12.1
- Semantic Router: 0.0.32
Error:
`ROUTE_LAYER = RouteLayer.from_json(ROUTE_LOCATION) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/semantic_router/layer.py", line 311, in from_json encoder = Encoder(type=config.encoder_type, name=config.encoder_name).model ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.12/site-packages/pydantic/v1/dataclasses.py", line 329, in new_init handle_extra_init(self, *args, **kwargs)
File "/venv/lib/python3.12/site-packages/pydantic/v1/dataclasses.py", line 293, in handle_extra_init init(self, *args, **{k: v for k, v in kwargs.items() if k in self.dataclass_fields})
File "/venv/lib/python3.12/site-packages/semantic_router/schema.py", line 37, in init self.type = EncoderType(type) ^^^^^^^^^^^^^^^^^`
ValueError: 'azure' is not a valid EncoderType