Skip to content

Commit 51405a7

Browse files
committed
fix: use correct passthrough pattern for Tripo3D getEndpoint
- Change from gatewayRequestURL.split('/v1')[1] to empty string return - Matches pattern used by other simple passthrough providers like Replicate - Addresses review comment about incorrect getEndpoint implementation
1 parent 6065218 commit 51405a7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/providers/tripo3d/api.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ const Tripo3DAPIConfig: ProviderAPIConfig = {
55
headers: ({ providerOptions }) => {
66
return { Authorization: `Bearer ${providerOptions.apiKey}` };
77
},
8-
getEndpoint: ({ gatewayRequestURL }) => {
9-
// For passthrough proxy, extract path after /v1
10-
return gatewayRequestURL.split('/v1')[1] || '';
11-
},
8+
getEndpoint: ({ fn }) => '',
129
};
1310

1411
export default Tripo3DAPIConfig;

0 commit comments

Comments
 (0)