File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
lib/shared/layers/python-sdk/python/genai_core/model_providers/nexus Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 77from functools import lru_cache
88from typing import Any , Optional , Union
99
10- from genai_core .types import EmbeddingsModel , Provider
10+ from genai_core .types import EmbeddingsModel , Provider , ModelInterface
1111
1212from ... import parameters
1313from .. 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 }
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments