File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ export const FEATHERLESS_AI: string = 'featherless-ai';
102102export const KRUTRIM : string = 'krutrim' ;
103103export const QDRANT : string = 'qdrant' ;
104104export const THREE_ZERO_TWO_AI : string = '302ai' ;
105+ export const MESHY : string = 'meshy' ;
105106export const TRIPO3D : string = 'tripo3d' ;
106107
107108export const VALID_PROVIDERS = [
@@ -168,6 +169,7 @@ export const VALID_PROVIDERS = [
168169 KRUTRIM ,
169170 QDRANT ,
170171 THREE_ZERO_TWO_AI ,
172+ MESHY ,
171173 TRIPO3D ,
172174] ;
173175
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ import HyperbolicConfig from './hyperbolic';
6363import { FeatherlessAIConfig } from './featherless-ai' ;
6464import KrutrimConfig from './krutrim' ;
6565import AI302Config from './302ai' ;
66+ import MeshyConfig from './meshy' ;
6667import Tripo3DConfig from './tripo3d' ;
6768
6869const Providers : { [ key : string ] : ProviderConfigs } = {
@@ -127,6 +128,7 @@ const Providers: { [key: string]: ProviderConfigs } = {
127128 'featherless-ai' : FeatherlessAIConfig ,
128129 krutrim : KrutrimConfig ,
129130 '302ai' : AI302Config ,
131+ meshy : MeshyConfig ,
130132 tripo3d : Tripo3DConfig ,
131133} ;
132134
Original file line number Diff line number Diff line change 1+ import { ProviderAPIConfig } from '../types' ;
2+
3+ const MeshyAPIConfig : ProviderAPIConfig = {
4+ getBaseURL : ( { gatewayRequestURL } ) => {
5+ const version = gatewayRequestURL . includes ( 'text-to-3d' ) ? 'v2' : 'v1' ;
6+ return `https://api.meshy.ai/openapi/${ version } ` ;
7+ } ,
8+ headers : ( { providerOptions } ) => {
9+ return {
10+ Authorization : `Bearer ${ providerOptions . apiKey } ` ,
11+ 'Content-Type' : 'application/json' ,
12+ } ;
13+ } ,
14+ getEndpoint : ( ) => '' ,
15+ } ;
16+
17+ export default MeshyAPIConfig ;
Original file line number Diff line number Diff line change 1+ import { ProviderConfigs } from '../types' ;
2+ import MeshyAPIConfig from './api' ;
3+
4+ const MeshyConfig : ProviderConfigs = {
5+ api : MeshyAPIConfig ,
6+ responseTransforms : { } ,
7+ } ;
8+
9+ export default MeshyConfig ;
You can’t perform that action at this time.
0 commit comments