We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f20dd8 commit 68074e1Copy full SHA for 68074e1
service/router.py
@@ -24,7 +24,8 @@ def create_route_layer() -> RouteLayer:
24
score_threshold=0.5,
25
)
26
]
27
- encoder = CohereEncoder(cohere_api_key=config("COHERE_API_KEY"))
+ cohere_api_key = config("COHERE_API_KEY", None)
28
+ encoder = CohereEncoder(cohere_api_key=cohere_api_key) if cohere_api_key else None
29
return RouteLayer(encoder=encoder, routes=routes)
30
31
0 commit comments