Skip to content

Commit e04848c

Browse files
committed
chore: cleanup redundant handlers
1 parent e2350f9 commit e04848c

File tree

4 files changed

+3
-75
lines changed

4 files changed

+3
-75
lines changed

src/providers/meshy/api.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,7 @@ const MeshyAPIConfig: ProviderAPIConfig = {
1111
'Content-Type': 'application/json',
1212
};
1313
},
14-
getEndpoint: ({ fn, gatewayRequestURL }) => {
15-
const basePath = gatewayRequestURL.split('/v1')?.[1] ?? '';
16-
17-
switch (fn) {
18-
case 'modelGenerate':
19-
return '/text-to-3d';
20-
default:
21-
return basePath || '';
22-
}
23-
},
14+
getEndpoint: ({}) => '',
2415
};
2516

2617
export default MeshyAPIConfig;

src/providers/meshy/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
import { ProviderConfigs } from '../types';
22
import MeshyAPIConfig from './api';
3-
import {
4-
MeshyModelGenerateConfig,
5-
MeshyModelGenerateResponseTransform,
6-
} from './modelGenerate';
73

84
const MeshyConfig: ProviderConfigs = {
9-
modelGenerate: MeshyModelGenerateConfig,
105
api: MeshyAPIConfig,
11-
responseTransforms: {
12-
modelGenerate: MeshyModelGenerateResponseTransform,
13-
},
6+
responseTransforms: {},
147
};
158

169
export default MeshyConfig;

src/providers/meshy/modelGenerate.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/providers/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ export type endpointStrings =
105105
| 'getModelResponse'
106106
| 'deleteModelResponse'
107107
| 'listResponseInputItems'
108-
| 'messages'
109-
| 'modelGenerate';
108+
| 'messages';
110109

111110
/**
112111
* A collection of API configurations for multiple AI providers.

0 commit comments

Comments
 (0)