Skip to content

Commit 14a8ac5

Browse files
authored
Bootstrap provider with auth none (#814)
This allows for the right type of authentication to be auto-discovered in case we were able to get the models. Signed-off-by: Juan Antonio Osorio <[email protected]>
1 parent 5135e51 commit 14a8ac5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/codegate/providers/crud/crud.py

+3
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ async def try_initialize_provider_endpoints(
185185
):
186186
try:
187187
models = pimpl.models()
188+
189+
# If we were able to get the models, we don't need auth
190+
provend.auth_type = apimodelsv1.ProviderAuthType.none
188191
except Exception as err:
189192
logger.debug(
190193
"Unable to get models from provider",

0 commit comments

Comments
 (0)