Skip to content

Commit 5dfcb71

Browse files
fix: Fix authentication issue in Nexus Gateway client (#690)
Co-authored-by: Maryam Khidir <[email protected]>
1 parent e46ef4a commit 5dfcb71

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/shared/layers/python-sdk/python/genai_core/model_providers/nexus/nexus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from functools import lru_cache
88
from typing import Any, Optional, Union
99

10-
from genai_core.types import EmbeddingsModel, Provider
10+
from genai_core.types import EmbeddingsModel, Provider, ModelInterface
1111

1212
from ... import parameters
1313
from .. import ModelProvider
@@ -156,4 +156,5 @@ def _transform_nexus_model(
156156
"streaming": streaming,
157157
"inputModalities": input_modalities,
158158
"outputModalities": output_modalities,
159+
"interface": ModelInterface.LANGCHAIN.value,
159160
}

lib/shared/layers/python-sdk/python/genai_core/model_providers/nexus/nexus_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _make_request(
114114
# Use client credentials
115115
token = self._ensure_valid_token()
116116
if token:
117-
request_headers["Authorization"] = f"Bearer {token}"
117+
request_headers["authorization-token"] = f"Bearer {token}"
118118
else:
119119
logger.error("Failed to get access token for Nexus Gateway")
120120
return ApiError(

0 commit comments

Comments
 (0)