Describe the bug
Currently we try to use the global endpoint with SemanticKernel with VertexAI.
However it looks like that is not possible because the uri is different.
the global endpoint looks like that:
$"https://aiplatform.googleapis.com/{versionSubLink}/projects/{projectId}/locations/{location}/publishers/google/models/{this._modelId}:...
however the regional endpoints that this project uses are like that:
$"https://{location}-aiplatform.googleapis.com/{versionSubLink}/projects/{projectId}/locations/{location}/publishers/google/models/{this._modelId}:
the fix is probably easy by just "hardcoding" that if the location is global, that the base domain is different.
Platform
- Language: C#
- AI model: VertexAI
Original Issue: #12525
Describe the bug
Currently we try to use the
globalendpoint with SemanticKernel with VertexAI.However it looks like that is not possible because the uri is different.
the global endpoint looks like that:
$"https://aiplatform.googleapis.com/{versionSubLink}/projects/{projectId}/locations/{location}/publishers/google/models/{this._modelId}:...however the regional endpoints that this project uses are like that:
$"https://{location}-aiplatform.googleapis.com/{versionSubLink}/projects/{projectId}/locations/{location}/publishers/google/models/{this._modelId}:the fix is probably easy by just "hardcoding" that if the location is global, that the base domain is different.
Platform
Original Issue: #12525