Skip to content

Commit 48b9068

Browse files
committed
fix: use gatewayRequestURL for Tripo3D passthrough routing
- Replace providerPath with gatewayRequestURL.split('/v1')[1] - Matches pattern used by other passthrough providers like Sagemaker - Fixes TypeScript error in getEndpoint function
1 parent 5a5e223 commit 48b9068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/providers/tripo3d/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const Tripo3DAPIConfig: ProviderAPIConfig = {
55
headers: ({ providerOptions }) => {
66
return { Authorization: `Bearer ${providerOptions.apiKey}` };
77
},
8-
getEndpoint: ({ providerPath }) => {
9-
// For passthrough proxy, use the path directly
10-
return providerPath || '';
8+
getEndpoint: ({ gatewayRequestURL }) => {
9+
// For passthrough proxy, extract path after /v1
10+
return gatewayRequestURL.split('/v1')[1] || '';
1111
},
1212
};
1313

0 commit comments

Comments
 (0)