2
0

swagger.yaml 190 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927
  1. definitions:
  2. adaptor.ConfigTemplate:
  3. properties:
  4. description:
  5. type: string
  6. example:
  7. type: string
  8. name:
  9. type: string
  10. required:
  11. type: boolean
  12. type: object
  13. adaptors.AdaptorMeta:
  14. properties:
  15. configs:
  16. additionalProperties:
  17. $ref: '#/definitions/adaptor.ConfigTemplate'
  18. type: object
  19. defaultBaseUrl:
  20. type: string
  21. keyHelp:
  22. type: string
  23. name:
  24. type: string
  25. readme:
  26. type: string
  27. type: object
  28. balance.GroupQuota:
  29. properties:
  30. remain:
  31. type: number
  32. total:
  33. type: number
  34. type: object
  35. controller.AddChannelRequest:
  36. properties:
  37. base_url:
  38. type: string
  39. configs:
  40. $ref: '#/definitions/model.ChannelConfigs'
  41. key:
  42. type: string
  43. model_mapping:
  44. additionalProperties:
  45. type: string
  46. type: object
  47. models:
  48. items:
  49. type: string
  50. type: array
  51. name:
  52. type: string
  53. priority:
  54. type: integer
  55. sets:
  56. items:
  57. type: string
  58. type: array
  59. status:
  60. type: integer
  61. type:
  62. $ref: '#/definitions/model.ChannelType'
  63. type: object
  64. controller.AddTokenRequest:
  65. properties:
  66. models:
  67. items:
  68. type: string
  69. type: array
  70. name:
  71. type: string
  72. period_last_update_time:
  73. type: integer
  74. period_quota:
  75. type: number
  76. period_type:
  77. type: string
  78. quota:
  79. type: number
  80. subnets:
  81. items:
  82. type: string
  83. type: array
  84. type: object
  85. controller.BuiltinModelConfig:
  86. properties:
  87. config:
  88. additionalProperties: {}
  89. type: object
  90. created_at:
  91. type: string
  92. exclude_from_tests:
  93. type: boolean
  94. force_save_detail:
  95. type: boolean
  96. image_prices:
  97. additionalProperties:
  98. format: float64
  99. type: number
  100. description: map[size]price_per_image
  101. type: object
  102. image_quality_prices:
  103. additionalProperties:
  104. additionalProperties:
  105. format: float64
  106. type: number
  107. type: object
  108. description: map[size]map[quality]price_per_image
  109. type: object
  110. max_error_rate:
  111. type: number
  112. model:
  113. type: string
  114. owner:
  115. $ref: '#/definitions/model.ModelOwner'
  116. plugin:
  117. additionalProperties:
  118. additionalProperties: {}
  119. type: object
  120. type: object
  121. price:
  122. $ref: '#/definitions/model.Price'
  123. retry_times:
  124. type: integer
  125. rpm:
  126. type: integer
  127. timeout_config:
  128. $ref: '#/definitions/model.TimeoutConfig'
  129. tpm:
  130. type: integer
  131. type:
  132. $ref: '#/definitions/mode.Mode'
  133. updated_at:
  134. type: string
  135. warn_error_rate:
  136. type: number
  137. type: object
  138. controller.CreateGroupRequest:
  139. properties:
  140. available_sets:
  141. items:
  142. type: string
  143. type: array
  144. balance_alert_enabled:
  145. type: boolean
  146. balance_alert_threshold:
  147. type: number
  148. rpm_ratio:
  149. type: number
  150. tpm_ratio:
  151. type: number
  152. type: object
  153. controller.EmbedMCP:
  154. properties:
  155. config_templates:
  156. $ref: '#/definitions/controller.EmbedMCPConfigTemplates'
  157. embed_config:
  158. $ref: '#/definitions/model.MCPEmbeddingConfig'
  159. enabled:
  160. type: boolean
  161. github_url:
  162. type: string
  163. id:
  164. type: string
  165. name:
  166. type: string
  167. name_cn:
  168. type: string
  169. readme:
  170. type: string
  171. readme_cn:
  172. type: string
  173. readme_cn_url:
  174. type: string
  175. readme_url:
  176. type: string
  177. tags:
  178. items:
  179. type: string
  180. type: array
  181. type: object
  182. controller.EmbedMCPConfigTemplate:
  183. properties:
  184. description:
  185. type: string
  186. example:
  187. type: string
  188. name:
  189. type: string
  190. required:
  191. type: boolean
  192. type: object
  193. controller.EmbedMCPConfigTemplates:
  194. additionalProperties:
  195. $ref: '#/definitions/controller.EmbedMCPConfigTemplate'
  196. type: object
  197. controller.EnabledModelChannel:
  198. properties:
  199. id:
  200. type: integer
  201. name:
  202. type: string
  203. type:
  204. $ref: '#/definitions/model.ChannelType'
  205. type: object
  206. controller.GetModelConfigsByModelsContainsRequest:
  207. properties:
  208. models:
  209. items:
  210. type: string
  211. type: array
  212. type: object
  213. controller.GroupMCPResponse:
  214. properties:
  215. created_at:
  216. type: string
  217. description:
  218. type: string
  219. endpoints:
  220. $ref: '#/definitions/controller.MCPEndpoint'
  221. group_id:
  222. type: string
  223. id:
  224. type: string
  225. name:
  226. type: string
  227. openapi_config:
  228. $ref: '#/definitions/model.MCPOpenAPIConfig'
  229. proxy_config:
  230. $ref: '#/definitions/model.GroupMCPProxyConfig'
  231. status:
  232. $ref: '#/definitions/model.GroupMCPStatus'
  233. type:
  234. $ref: '#/definitions/model.GroupMCPType'
  235. update_at:
  236. type: string
  237. type: object
  238. controller.GroupModel:
  239. properties:
  240. config:
  241. additionalProperties: {}
  242. type: object
  243. created_at:
  244. type: integer
  245. enabled_plugins:
  246. items:
  247. type: string
  248. type: array
  249. image_prices:
  250. additionalProperties:
  251. format: float64
  252. type: number
  253. description: map[size]price_per_image
  254. type: object
  255. image_quality_prices:
  256. additionalProperties:
  257. additionalProperties:
  258. format: float64
  259. type: number
  260. type: object
  261. description: map[size]map[quality]price_per_image
  262. type: object
  263. model:
  264. type: string
  265. owner:
  266. $ref: '#/definitions/model.ModelOwner'
  267. price:
  268. $ref: '#/definitions/model.Price'
  269. rpm:
  270. type: integer
  271. tpm:
  272. type: integer
  273. type:
  274. $ref: '#/definitions/mode.Mode'
  275. updated_at:
  276. type: integer
  277. type: object
  278. controller.GroupPublicMCPDetailResponse:
  279. properties:
  280. created_at:
  281. type: string
  282. description:
  283. type: string
  284. description_cn:
  285. type: string
  286. embed_config:
  287. $ref: '#/definitions/model.MCPEmbeddingConfig'
  288. endpoints:
  289. $ref: '#/definitions/controller.MCPEndpoint'
  290. github_url:
  291. type: string
  292. hosted:
  293. type: boolean
  294. id:
  295. type: string
  296. logo_url:
  297. type: string
  298. name:
  299. type: string
  300. name_cn:
  301. type: string
  302. openapi_config:
  303. $ref: '#/definitions/model.MCPOpenAPIConfig'
  304. params:
  305. additionalProperties:
  306. type: string
  307. type: object
  308. price:
  309. $ref: '#/definitions/model.MCPPrice'
  310. proxy_config:
  311. $ref: '#/definitions/model.PublicMCPProxyConfig'
  312. readme:
  313. type: string
  314. readme_cn:
  315. type: string
  316. readme_cn_url:
  317. type: string
  318. readme_url:
  319. type: string
  320. reusing:
  321. additionalProperties:
  322. $ref: '#/definitions/model.ReusingParam'
  323. type: object
  324. status:
  325. $ref: '#/definitions/model.PublicMCPStatus'
  326. tags:
  327. items:
  328. type: string
  329. type: array
  330. test_config:
  331. allOf:
  332. - $ref: '#/definitions/model.TestConfig'
  333. description: only used by list tools
  334. tools:
  335. items:
  336. $ref: '#/definitions/mcp.Tool'
  337. type: array
  338. type:
  339. $ref: '#/definitions/model.PublicMCPType'
  340. update_at:
  341. type: string
  342. type: object
  343. controller.GroupPublicMCPResponse:
  344. properties:
  345. created_at:
  346. type: string
  347. description:
  348. type: string
  349. description_cn:
  350. type: string
  351. embed_config:
  352. $ref: '#/definitions/model.MCPEmbeddingConfig'
  353. github_url:
  354. type: string
  355. hosted:
  356. type: boolean
  357. id:
  358. type: string
  359. logo_url:
  360. type: string
  361. name:
  362. type: string
  363. name_cn:
  364. type: string
  365. openapi_config:
  366. $ref: '#/definitions/model.MCPOpenAPIConfig'
  367. price:
  368. $ref: '#/definitions/model.MCPPrice'
  369. proxy_config:
  370. $ref: '#/definitions/model.PublicMCPProxyConfig'
  371. readme:
  372. type: string
  373. readme_cn:
  374. type: string
  375. readme_cn_url:
  376. type: string
  377. readme_url:
  378. type: string
  379. status:
  380. $ref: '#/definitions/model.PublicMCPStatus'
  381. tags:
  382. items:
  383. type: string
  384. type: array
  385. test_config:
  386. allOf:
  387. - $ref: '#/definitions/model.TestConfig'
  388. description: only used by list tools
  389. type:
  390. $ref: '#/definitions/model.PublicMCPType'
  391. update_at:
  392. type: string
  393. type: object
  394. controller.GroupResponse:
  395. properties:
  396. accessed_at:
  397. type: string
  398. available_sets:
  399. items:
  400. type: string
  401. type: array
  402. balance_alert_enabled:
  403. type: boolean
  404. balance_alert_threshold:
  405. type: number
  406. created_at:
  407. type: string
  408. id:
  409. type: string
  410. request_count:
  411. type: integer
  412. rpm_ratio:
  413. type: number
  414. status:
  415. type: integer
  416. tpm_ratio:
  417. type: number
  418. used_amount:
  419. type: number
  420. type: object
  421. controller.ImportChannelFromOneAPIRequest:
  422. properties:
  423. dsn:
  424. type: string
  425. type: object
  426. controller.MCPEndpoint:
  427. properties:
  428. host:
  429. type: string
  430. sse:
  431. type: string
  432. streamable_http:
  433. type: string
  434. type: object
  435. controller.OpenAIModelPermission:
  436. properties:
  437. allow_create_engine:
  438. type: boolean
  439. allow_fine_tuning:
  440. type: boolean
  441. allow_logprobs:
  442. type: boolean
  443. allow_sampling:
  444. type: boolean
  445. allow_search_indices:
  446. type: boolean
  447. allow_view:
  448. type: boolean
  449. created:
  450. type: integer
  451. group:
  452. type: string
  453. id:
  454. type: string
  455. is_blocking:
  456. type: boolean
  457. object:
  458. type: string
  459. organization:
  460. type: string
  461. type: object
  462. controller.OpenAIModels:
  463. properties:
  464. created:
  465. type: integer
  466. id:
  467. type: string
  468. object:
  469. type: string
  470. owned_by:
  471. type: string
  472. parent:
  473. type: string
  474. permission:
  475. items:
  476. $ref: '#/definitions/controller.OpenAIModelPermission'
  477. type: array
  478. root:
  479. type: string
  480. type: object
  481. controller.PublicMCPResponse:
  482. properties:
  483. created_at:
  484. type: string
  485. description:
  486. type: string
  487. description_cn:
  488. type: string
  489. embed_config:
  490. $ref: '#/definitions/model.MCPEmbeddingConfig'
  491. endpoints:
  492. $ref: '#/definitions/controller.MCPEndpoint'
  493. github_url:
  494. type: string
  495. id:
  496. type: string
  497. logo_url:
  498. type: string
  499. name:
  500. type: string
  501. name_cn:
  502. type: string
  503. openapi_config:
  504. $ref: '#/definitions/model.MCPOpenAPIConfig'
  505. price:
  506. $ref: '#/definitions/model.MCPPrice'
  507. proxy_config:
  508. $ref: '#/definitions/model.PublicMCPProxyConfig'
  509. readme:
  510. type: string
  511. readme_cn:
  512. type: string
  513. readme_cn_url:
  514. type: string
  515. readme_url:
  516. type: string
  517. status:
  518. $ref: '#/definitions/model.PublicMCPStatus'
  519. tags:
  520. items:
  521. type: string
  522. type: array
  523. test_config:
  524. allOf:
  525. - $ref: '#/definitions/model.TestConfig'
  526. description: only used by list tools
  527. type:
  528. $ref: '#/definitions/model.PublicMCPType'
  529. update_at:
  530. type: string
  531. type: object
  532. controller.SaveEmbedMCPRequest:
  533. properties:
  534. enabled:
  535. type: boolean
  536. id:
  537. type: string
  538. init_config:
  539. additionalProperties:
  540. type: string
  541. type: object
  542. type: object
  543. controller.SaveGroupModelConfigRequest:
  544. properties:
  545. force_save_detail:
  546. type: boolean
  547. image_prices:
  548. additionalProperties:
  549. format: float64
  550. type: number
  551. type: object
  552. model:
  553. type: string
  554. override_force_save_detail:
  555. type: boolean
  556. override_limit:
  557. type: boolean
  558. override_price:
  559. type: boolean
  560. override_retry_times:
  561. type: boolean
  562. price:
  563. $ref: '#/definitions/model.Price'
  564. retry_times:
  565. type: integer
  566. rpm:
  567. type: integer
  568. tpm:
  569. type: integer
  570. type: object
  571. controller.SaveModelConfigsRequest:
  572. properties:
  573. config:
  574. additionalProperties: {}
  575. type: object
  576. created_at:
  577. type: string
  578. exclude_from_tests:
  579. type: boolean
  580. force_save_detail:
  581. type: boolean
  582. image_prices:
  583. additionalProperties:
  584. format: float64
  585. type: number
  586. description: map[size]price_per_image
  587. type: object
  588. image_quality_prices:
  589. additionalProperties:
  590. additionalProperties:
  591. format: float64
  592. type: number
  593. type: object
  594. description: map[size]map[quality]price_per_image
  595. type: object
  596. max_error_rate:
  597. type: number
  598. model:
  599. type: string
  600. owner:
  601. $ref: '#/definitions/model.ModelOwner'
  602. plugin:
  603. additionalProperties:
  604. additionalProperties: {}
  605. type: object
  606. type: object
  607. price:
  608. $ref: '#/definitions/model.Price'
  609. retry_times:
  610. type: integer
  611. rpm:
  612. type: integer
  613. timeout_config:
  614. $ref: '#/definitions/model.TimeoutConfig'
  615. tpm:
  616. type: integer
  617. type:
  618. $ref: '#/definitions/mode.Mode'
  619. updated_at:
  620. type: string
  621. warn_error_rate:
  622. type: number
  623. type: object
  624. controller.StatusData:
  625. properties:
  626. startTime:
  627. type: integer
  628. type: object
  629. controller.TestResult:
  630. properties:
  631. data:
  632. $ref: '#/definitions/model.ChannelTest'
  633. message:
  634. type: string
  635. success:
  636. type: boolean
  637. type: object
  638. controller.TokenResponse:
  639. properties:
  640. accessed_at:
  641. type: string
  642. created_at:
  643. type: string
  644. group:
  645. type: string
  646. id:
  647. type: integer
  648. key:
  649. type: string
  650. models:
  651. items:
  652. type: string
  653. type: array
  654. name:
  655. type: string
  656. period_last_update_amount:
  657. description: Total usage at last period reset
  658. type: number
  659. period_last_update_time:
  660. description: Last time period was reset
  661. type: string
  662. period_quota:
  663. type: number
  664. period_type:
  665. description: daily, weekly, monthly, default is monthly
  666. type: string
  667. quota:
  668. type: number
  669. request_count:
  670. type: integer
  671. status:
  672. type: integer
  673. subnets:
  674. items:
  675. type: string
  676. type: array
  677. used_amount:
  678. type: number
  679. type: object
  680. controller.UpdateChannelStatusRequest:
  681. properties:
  682. status:
  683. type: integer
  684. type: object
  685. controller.UpdateGroupMCPStatusRequest:
  686. properties:
  687. status:
  688. $ref: '#/definitions/model.GroupMCPStatus'
  689. type: object
  690. controller.UpdateGroupRPMRatioRequest:
  691. properties:
  692. rpm_ratio:
  693. type: number
  694. type: object
  695. controller.UpdateGroupStatusRequest:
  696. properties:
  697. status:
  698. type: integer
  699. type: object
  700. controller.UpdateGroupTPMRatioRequest:
  701. properties:
  702. tpm_ratio:
  703. type: number
  704. type: object
  705. controller.UpdateGroupsStatusRequest:
  706. properties:
  707. groups:
  708. items:
  709. type: string
  710. type: array
  711. status:
  712. type: integer
  713. type: object
  714. controller.UpdatePublicMCPStatusRequest:
  715. properties:
  716. status:
  717. $ref: '#/definitions/model.PublicMCPStatus'
  718. type: object
  719. controller.UpdateTokenNameRequest:
  720. properties:
  721. name:
  722. type: string
  723. type: object
  724. controller.UpdateTokenStatusRequest:
  725. properties:
  726. status:
  727. type: integer
  728. type: object
  729. mcp.Meta:
  730. properties:
  731. additionalFields:
  732. additionalProperties: {}
  733. description: |-
  734. AdditionalFields are any fields present in the Meta that are not
  735. otherwise defined in the protocol.
  736. type: object
  737. progressToken:
  738. description: |-
  739. If specified, the caller is requesting out-of-band progress
  740. notifications for this request (as represented by
  741. notifications/progress). The value of this parameter is an
  742. opaque token that will be attached to any subsequent
  743. notifications. The receiver is not obligated to provide these
  744. notifications.
  745. type: object
  746. mcp.Tool:
  747. properties:
  748. _meta:
  749. allOf:
  750. - $ref: '#/definitions/mcp.Meta'
  751. description: Meta is a metadata object that is reserved by MCP for storing
  752. additional information.
  753. annotations:
  754. allOf:
  755. - $ref: '#/definitions/mcp.ToolAnnotation'
  756. description: Optional properties describing tool behavior
  757. description:
  758. description: A human-readable description of the tool.
  759. type: string
  760. inputSchema:
  761. allOf:
  762. - $ref: '#/definitions/mcp.ToolInputSchema'
  763. description: A JSON Schema object defining the expected parameters for the
  764. tool.
  765. name:
  766. description: The name of the tool.
  767. type: string
  768. outputSchema:
  769. allOf:
  770. - $ref: '#/definitions/mcp.ToolOutputSchema'
  771. description: A JSON Schema object defining the expected output returned by
  772. the tool .
  773. type: object
  774. mcp.ToolAnnotation:
  775. properties:
  776. destructiveHint:
  777. description: If true, the tool may perform destructive updates
  778. type: boolean
  779. idempotentHint:
  780. description: If true, repeated calls with same args have no additional effect
  781. type: boolean
  782. openWorldHint:
  783. description: If true, tool interacts with external entities
  784. type: boolean
  785. readOnlyHint:
  786. description: If true, the tool does not modify its environment
  787. type: boolean
  788. title:
  789. description: Human-readable title for the tool
  790. type: string
  791. type: object
  792. mcp.ToolInputSchema:
  793. properties:
  794. $defs:
  795. additionalProperties: {}
  796. type: object
  797. properties:
  798. additionalProperties: {}
  799. type: object
  800. required:
  801. items:
  802. type: string
  803. type: array
  804. type:
  805. type: string
  806. type: object
  807. mcp.ToolOutputSchema:
  808. properties:
  809. $defs:
  810. additionalProperties: {}
  811. type: object
  812. properties:
  813. additionalProperties: {}
  814. type: object
  815. required:
  816. items:
  817. type: string
  818. type: array
  819. type:
  820. type: string
  821. type: object
  822. middleware.APIResponse:
  823. properties:
  824. data: {}
  825. message:
  826. type: string
  827. success:
  828. type: boolean
  829. type: object
  830. mode.Mode:
  831. enum:
  832. - 0
  833. - 1
  834. - 2
  835. - 3
  836. - 4
  837. - 5
  838. - 6
  839. - 7
  840. - 8
  841. - 9
  842. - 10
  843. - 11
  844. - 12
  845. - 13
  846. - 14
  847. - 15
  848. - 16
  849. - 17
  850. - 18
  851. - 19
  852. - 20
  853. - 21
  854. type: integer
  855. x-enum-varnames:
  856. - Unknown
  857. - ChatCompletions
  858. - Completions
  859. - Embeddings
  860. - Moderations
  861. - ImagesGenerations
  862. - ImagesEdits
  863. - AudioSpeech
  864. - AudioTranscription
  865. - AudioTranslation
  866. - Rerank
  867. - ParsePdf
  868. - Anthropic
  869. - VideoGenerationsJobs
  870. - VideoGenerationsGetJobs
  871. - VideoGenerationsContent
  872. - Responses
  873. - ResponsesGet
  874. - ResponsesDelete
  875. - ResponsesCancel
  876. - ResponsesInputItems
  877. - Gemini
  878. model.AnthropicMessageRequest:
  879. properties:
  880. messages:
  881. items:
  882. $ref: '#/definitions/model.Message'
  883. type: array
  884. model:
  885. type: string
  886. type: object
  887. model.Channel:
  888. properties:
  889. balance:
  890. type: number
  891. balance_threshold:
  892. type: number
  893. balance_updated_at:
  894. type: string
  895. base_url:
  896. type: string
  897. channel_tests:
  898. items:
  899. $ref: '#/definitions/model.ChannelTest'
  900. type: array
  901. configs:
  902. $ref: '#/definitions/model.ChannelConfigs'
  903. created_at:
  904. type: string
  905. enabled_auto_balance_check:
  906. type: boolean
  907. id:
  908. type: integer
  909. key:
  910. type: string
  911. last_test_error_at:
  912. type: string
  913. model_mapping:
  914. additionalProperties:
  915. type: string
  916. type: object
  917. models:
  918. items:
  919. type: string
  920. type: array
  921. name:
  922. type: string
  923. priority:
  924. type: integer
  925. request_count:
  926. type: integer
  927. retry_count:
  928. type: integer
  929. sets:
  930. items:
  931. type: string
  932. type: array
  933. status:
  934. type: integer
  935. type:
  936. $ref: '#/definitions/model.ChannelType'
  937. used_amount:
  938. type: number
  939. type: object
  940. model.ChannelConfigs:
  941. additionalProperties: {}
  942. type: object
  943. model.ChannelTest:
  944. properties:
  945. actual_model:
  946. type: string
  947. channel_id:
  948. type: integer
  949. channel_name:
  950. type: string
  951. channel_type:
  952. $ref: '#/definitions/model.ChannelType'
  953. code:
  954. type: integer
  955. mode:
  956. $ref: '#/definitions/mode.Mode'
  957. model:
  958. type: string
  959. response:
  960. type: string
  961. success:
  962. type: boolean
  963. test_at:
  964. type: string
  965. took:
  966. type: number
  967. type: object
  968. model.ChannelType:
  969. enum:
  970. - 1
  971. - 3
  972. - 4
  973. - 12
  974. - 13
  975. - 14
  976. - 15
  977. - 16
  978. - 17
  979. - 18
  980. - 19
  981. - 20
  982. - 23
  983. - 24
  984. - 25
  985. - 26
  986. - 27
  987. - 28
  988. - 29
  989. - 30
  990. - 31
  991. - 32
  992. - 33
  993. - 34
  994. - 35
  995. - 36
  996. - 37
  997. - 40
  998. - 41
  999. - 42
  1000. - 43
  1001. - 44
  1002. - 45
  1003. - 46
  1004. - 47
  1005. - 48
  1006. - 49
  1007. - 50
  1008. - 51
  1009. - 52
  1010. type: integer
  1011. x-enum-varnames:
  1012. - ChannelTypeOpenAI
  1013. - ChannelTypeAzure
  1014. - ChannelTypeAzure2
  1015. - ChannelTypeGoogleGeminiOpenAI
  1016. - ChannelTypeBaiduV2
  1017. - ChannelTypeAnthropic
  1018. - ChannelTypeBaidu
  1019. - ChannelTypeZhipu
  1020. - ChannelTypeAli
  1021. - ChannelTypeXunfei
  1022. - ChannelTypeAI360
  1023. - ChannelTypeOpenRouter
  1024. - ChannelTypeTencent
  1025. - ChannelTypeGoogleGemini
  1026. - ChannelTypeMoonshot
  1027. - ChannelTypeBaichuan
  1028. - ChannelTypeMinimax
  1029. - ChannelTypeMistral
  1030. - ChannelTypeGroq
  1031. - ChannelTypeOllama
  1032. - ChannelTypeLingyiwanwu
  1033. - ChannelTypeStepfun
  1034. - ChannelTypeAWS
  1035. - ChannelTypeCoze
  1036. - ChannelTypeCohere
  1037. - ChannelTypeDeepseek
  1038. - ChannelTypeCloudflare
  1039. - ChannelTypeDoubao
  1040. - ChannelTypeNovita
  1041. - ChannelTypeVertexAI
  1042. - ChannelTypeSiliconflow
  1043. - ChannelTypeDoubaoAudio
  1044. - ChannelTypeXAI
  1045. - ChannelTypeDoc2x
  1046. - ChannelTypeJina
  1047. - ChannelTypeTextEmbeddingsInference
  1048. - ChannelTypeQianfan
  1049. - ChannelTypeSangforAICP
  1050. - ChannelTypeStreamlake
  1051. - ChannelTypeZhipuCoding
  1052. model.ChartData:
  1053. properties:
  1054. audio_input_tokens:
  1055. type: integer
  1056. cache_creation_tokens:
  1057. type: integer
  1058. cached_tokens:
  1059. type: integer
  1060. exception_count:
  1061. type: integer
  1062. image_input_tokens:
  1063. type: integer
  1064. input_tokens:
  1065. type: integer
  1066. output_tokens:
  1067. type: integer
  1068. reasoning_tokens:
  1069. type: integer
  1070. request_count:
  1071. type: integer
  1072. retry_count:
  1073. type: integer
  1074. status_4xx_count:
  1075. type: integer
  1076. status_500_count:
  1077. type: integer
  1078. status_5xx_count:
  1079. type: integer
  1080. status_400_count:
  1081. type: integer
  1082. status_429_count:
  1083. type: integer
  1084. timestamp:
  1085. type: integer
  1086. total_time_milliseconds:
  1087. type: integer
  1088. total_tokens:
  1089. type: integer
  1090. total_ttfb_milliseconds:
  1091. type: integer
  1092. used_amount:
  1093. type: number
  1094. web_search_count:
  1095. type: integer
  1096. type: object
  1097. model.ChatUsage:
  1098. properties:
  1099. completion_tokens:
  1100. type: integer
  1101. completion_tokens_details:
  1102. $ref: '#/definitions/model.CompletionTokensDetails'
  1103. prompt_tokens:
  1104. type: integer
  1105. prompt_tokens_details:
  1106. $ref: '#/definitions/model.PromptTokensDetails'
  1107. total_tokens:
  1108. type: integer
  1109. web_search_count:
  1110. type: integer
  1111. type: object
  1112. model.ClaudeThinkingType:
  1113. enum:
  1114. - enabled
  1115. - disabled
  1116. type: string
  1117. x-enum-varnames:
  1118. - ClaudeThinkingTypeEnabled
  1119. - ClaudeThinkingTypeDisabled
  1120. model.CompletionTokensDetails:
  1121. properties:
  1122. accepted_prediction_tokens:
  1123. type: integer
  1124. audio_tokens:
  1125. type: integer
  1126. reasoning_tokens:
  1127. type: integer
  1128. rejected_prediction_tokens:
  1129. type: integer
  1130. type: object
  1131. model.ConditionalPrice:
  1132. properties:
  1133. condition:
  1134. $ref: '#/definitions/model.PriceCondition'
  1135. price:
  1136. $ref: '#/definitions/model.Price'
  1137. type: object
  1138. model.CreateResponseRequest:
  1139. properties:
  1140. background:
  1141. type: boolean
  1142. conversation:
  1143. description: string or object
  1144. include:
  1145. items:
  1146. type: string
  1147. type: array
  1148. input: {}
  1149. instructions:
  1150. type: string
  1151. max_output_tokens:
  1152. type: integer
  1153. max_tool_calls:
  1154. type: integer
  1155. metadata:
  1156. additionalProperties: {}
  1157. type: object
  1158. model:
  1159. type: string
  1160. parallel_tool_calls:
  1161. type: boolean
  1162. previous_response_id:
  1163. type: string
  1164. prompt_cache_key:
  1165. type: string
  1166. safety_identifier:
  1167. type: string
  1168. service_tier:
  1169. type: string
  1170. store:
  1171. type: boolean
  1172. stream:
  1173. type: boolean
  1174. temperature:
  1175. type: number
  1176. text:
  1177. $ref: '#/definitions/model.ResponseText'
  1178. tool_choice: {}
  1179. tools:
  1180. items:
  1181. $ref: '#/definitions/model.ResponseTool'
  1182. type: array
  1183. top_logprobs:
  1184. type: integer
  1185. top_p:
  1186. type: number
  1187. truncation:
  1188. type: string
  1189. user:
  1190. description: Deprecated, use prompt_cache_key
  1191. type: string
  1192. type: object
  1193. model.DashboardResponse:
  1194. properties:
  1195. audio_input_tokens:
  1196. type: integer
  1197. cache_creation_tokens:
  1198. type: integer
  1199. cached_tokens:
  1200. type: integer
  1201. channels:
  1202. items:
  1203. type: integer
  1204. type: array
  1205. chart_data:
  1206. items:
  1207. $ref: '#/definitions/model.ChartData'
  1208. type: array
  1209. exception_count:
  1210. type: integer
  1211. image_input_tokens:
  1212. type: integer
  1213. input_tokens:
  1214. type: integer
  1215. max_rpm:
  1216. type: integer
  1217. max_tpm:
  1218. type: integer
  1219. models:
  1220. items:
  1221. type: string
  1222. type: array
  1223. output_tokens:
  1224. type: integer
  1225. reasoning_tokens:
  1226. type: integer
  1227. request_count:
  1228. type: integer
  1229. retry_count:
  1230. type: integer
  1231. rpm:
  1232. type: integer
  1233. status_5xx_count:
  1234. type: integer
  1235. status_400_count:
  1236. type: integer
  1237. status_429_count:
  1238. type: integer
  1239. status_4xx_count:
  1240. type: integer
  1241. status_500_count:
  1242. type: integer
  1243. total_count:
  1244. description: use Count.RequestCount instead
  1245. type: integer
  1246. total_time_milliseconds:
  1247. type: integer
  1248. total_tokens:
  1249. type: integer
  1250. total_ttfb_milliseconds:
  1251. type: integer
  1252. tpm:
  1253. type: integer
  1254. used_amount:
  1255. type: number
  1256. web_search_count:
  1257. type: integer
  1258. type: object
  1259. model.Document:
  1260. properties:
  1261. text:
  1262. type: string
  1263. type: object
  1264. model.EmbeddingPromptTokensDetails:
  1265. properties:
  1266. image_tokens:
  1267. type: integer
  1268. text_tokens:
  1269. type: integer
  1270. type: object
  1271. model.EmbeddingRequest:
  1272. properties:
  1273. dimensions:
  1274. type: integer
  1275. encoding_format:
  1276. type: string
  1277. input:
  1278. type: string
  1279. model:
  1280. type: string
  1281. type: object
  1282. model.EmbeddingResponse:
  1283. properties:
  1284. data:
  1285. items:
  1286. $ref: '#/definitions/model.EmbeddingResponseItem'
  1287. type: array
  1288. model:
  1289. type: string
  1290. object:
  1291. type: string
  1292. usage:
  1293. $ref: '#/definitions/model.EmbeddingUsage'
  1294. type: object
  1295. model.EmbeddingResponseItem:
  1296. properties:
  1297. embedding:
  1298. items:
  1299. type: number
  1300. type: array
  1301. index:
  1302. type: integer
  1303. object:
  1304. type: string
  1305. type: object
  1306. model.EmbeddingUsage:
  1307. properties:
  1308. prompt_tokens:
  1309. type: integer
  1310. prompt_tokens_details:
  1311. $ref: '#/definitions/model.EmbeddingPromptTokensDetails'
  1312. total_tokens:
  1313. type: integer
  1314. type: object
  1315. model.ExtraContent:
  1316. properties:
  1317. google:
  1318. $ref: '#/definitions/model.GoogleExtraContent'
  1319. type: object
  1320. model.FinishReason:
  1321. enum:
  1322. - stop
  1323. - length
  1324. - content_filter
  1325. - tool_calls
  1326. - function_call
  1327. type: string
  1328. x-enum-varnames:
  1329. - FinishReasonStop
  1330. - FinishReasonLength
  1331. - FinishReasonContentFilter
  1332. - FinishReasonToolCalls
  1333. - FinishReasonFunctionCall
  1334. model.Function:
  1335. properties:
  1336. arguments:
  1337. type: string
  1338. description:
  1339. type: string
  1340. name:
  1341. type: string
  1342. parameters: {}
  1343. type: object
  1344. model.GeneralOpenAIRequest:
  1345. properties:
  1346. frequency_penalty:
  1347. type: number
  1348. function_call: {}
  1349. functions: {}
  1350. input: {}
  1351. logit_bias: {}
  1352. logprobs:
  1353. type: boolean
  1354. max_completion_tokens:
  1355. type: integer
  1356. max_tokens:
  1357. type: integer
  1358. messages:
  1359. items:
  1360. $ref: '#/definitions/model.Message'
  1361. type: array
  1362. metadata: {}
  1363. model:
  1364. type: string
  1365. num_ctx:
  1366. type: integer
  1367. presence_penalty:
  1368. type: number
  1369. prompt: {}
  1370. response_format:
  1371. $ref: '#/definitions/model.ResponseFormat'
  1372. seed:
  1373. type: number
  1374. size:
  1375. type: string
  1376. stop: {}
  1377. stream:
  1378. type: boolean
  1379. stream_options:
  1380. $ref: '#/definitions/model.StreamOptions'
  1381. temperature:
  1382. type: number
  1383. thinking:
  1384. allOf:
  1385. - $ref: '#/definitions/model.GeneralThinking'
  1386. description: aiproxy control field
  1387. tool_choice: {}
  1388. tools:
  1389. items:
  1390. $ref: '#/definitions/model.Tool'
  1391. type: array
  1392. top_k:
  1393. type: integer
  1394. top_logprobs:
  1395. type: integer
  1396. top_p:
  1397. type: number
  1398. user:
  1399. type: string
  1400. type: object
  1401. model.GeneralThinking:
  1402. properties:
  1403. budget_tokens:
  1404. description: when type is "disabled", this field must be 0
  1405. type: integer
  1406. type:
  1407. $ref: '#/definitions/model.ClaudeThinkingType'
  1408. type: object
  1409. model.GetGroupLogsResult:
  1410. properties:
  1411. channels:
  1412. items:
  1413. type: integer
  1414. type: array
  1415. logs:
  1416. items:
  1417. $ref: '#/definitions/model.Log'
  1418. type: array
  1419. models:
  1420. items:
  1421. type: string
  1422. type: array
  1423. token_names:
  1424. items:
  1425. type: string
  1426. type: array
  1427. total:
  1428. type: integer
  1429. type: object
  1430. model.GetLogsResult:
  1431. properties:
  1432. channels:
  1433. items:
  1434. type: integer
  1435. type: array
  1436. logs:
  1437. items:
  1438. $ref: '#/definitions/model.Log'
  1439. type: array
  1440. total:
  1441. type: integer
  1442. type: object
  1443. model.GoogleExtraContent:
  1444. properties:
  1445. thought_signature:
  1446. type: string
  1447. type: object
  1448. model.Group:
  1449. properties:
  1450. available_sets:
  1451. items:
  1452. type: string
  1453. type: array
  1454. balance_alert_enabled:
  1455. type: boolean
  1456. balance_alert_threshold:
  1457. type: number
  1458. created_at:
  1459. type: string
  1460. id:
  1461. type: string
  1462. request_count:
  1463. type: integer
  1464. rpm_ratio:
  1465. type: number
  1466. status:
  1467. type: integer
  1468. tpm_ratio:
  1469. type: number
  1470. used_amount:
  1471. type: number
  1472. type: object
  1473. model.GroupDashboardResponse:
  1474. properties:
  1475. audio_input_tokens:
  1476. type: integer
  1477. cache_creation_tokens:
  1478. type: integer
  1479. cached_tokens:
  1480. type: integer
  1481. channels:
  1482. items:
  1483. type: integer
  1484. type: array
  1485. chart_data:
  1486. items:
  1487. $ref: '#/definitions/model.ChartData'
  1488. type: array
  1489. exception_count:
  1490. type: integer
  1491. image_input_tokens:
  1492. type: integer
  1493. input_tokens:
  1494. type: integer
  1495. max_rpm:
  1496. type: integer
  1497. max_tpm:
  1498. type: integer
  1499. models:
  1500. items:
  1501. type: string
  1502. type: array
  1503. output_tokens:
  1504. type: integer
  1505. reasoning_tokens:
  1506. type: integer
  1507. request_count:
  1508. type: integer
  1509. retry_count:
  1510. type: integer
  1511. rpm:
  1512. type: integer
  1513. status_400_count:
  1514. type: integer
  1515. status_429_count:
  1516. type: integer
  1517. status_4xx_count:
  1518. type: integer
  1519. status_500_count:
  1520. type: integer
  1521. status_5xx_count:
  1522. type: integer
  1523. token_names:
  1524. items:
  1525. type: string
  1526. type: array
  1527. total_count:
  1528. description: use Count.RequestCount instead
  1529. type: integer
  1530. total_time_milliseconds:
  1531. type: integer
  1532. total_tokens:
  1533. type: integer
  1534. total_ttfb_milliseconds:
  1535. type: integer
  1536. tpm:
  1537. type: integer
  1538. used_amount:
  1539. type: number
  1540. web_search_count:
  1541. type: integer
  1542. type: object
  1543. model.GroupMCP:
  1544. properties:
  1545. created_at:
  1546. type: string
  1547. description:
  1548. type: string
  1549. group_id:
  1550. type: string
  1551. id:
  1552. type: string
  1553. name:
  1554. type: string
  1555. openapi_config:
  1556. $ref: '#/definitions/model.MCPOpenAPIConfig'
  1557. proxy_config:
  1558. $ref: '#/definitions/model.GroupMCPProxyConfig'
  1559. status:
  1560. $ref: '#/definitions/model.GroupMCPStatus'
  1561. type:
  1562. $ref: '#/definitions/model.GroupMCPType'
  1563. update_at:
  1564. type: string
  1565. type: object
  1566. model.GroupMCPProxyConfig:
  1567. properties:
  1568. headers:
  1569. additionalProperties:
  1570. type: string
  1571. type: object
  1572. querys:
  1573. additionalProperties:
  1574. type: string
  1575. type: object
  1576. url:
  1577. type: string
  1578. type: object
  1579. model.GroupMCPStatus:
  1580. enum:
  1581. - 1
  1582. - 2
  1583. type: integer
  1584. x-enum-varnames:
  1585. - GroupMCPStatusEnabled
  1586. - GroupMCPStatusDisabled
  1587. model.GroupMCPType:
  1588. enum:
  1589. - mcp_proxy_sse
  1590. - mcp_proxy_streamable
  1591. - mcp_openapi
  1592. type: string
  1593. x-enum-varnames:
  1594. - GroupMCPTypeProxySSE
  1595. - GroupMCPTypeProxyStreamable
  1596. - GroupMCPTypeOpenAPI
  1597. model.GroupModelConfig:
  1598. properties:
  1599. force_save_detail:
  1600. type: boolean
  1601. group_id:
  1602. type: string
  1603. image_prices:
  1604. additionalProperties:
  1605. format: float64
  1606. type: number
  1607. type: object
  1608. model:
  1609. type: string
  1610. override_force_save_detail:
  1611. type: boolean
  1612. override_limit:
  1613. type: boolean
  1614. override_price:
  1615. type: boolean
  1616. override_retry_times:
  1617. type: boolean
  1618. price:
  1619. $ref: '#/definitions/model.Price'
  1620. retry_times:
  1621. type: integer
  1622. rpm:
  1623. type: integer
  1624. tpm:
  1625. type: integer
  1626. type: object
  1627. model.ImageData:
  1628. properties:
  1629. b64_json:
  1630. type: string
  1631. revised_prompt:
  1632. type: string
  1633. url:
  1634. type: string
  1635. type: object
  1636. model.ImageInputTokensDetails:
  1637. properties:
  1638. image_tokens:
  1639. description: The number of image tokens in the input prompt.
  1640. type: integer
  1641. text_tokens:
  1642. description: The number of text tokens in the input prompt.
  1643. type: integer
  1644. type: object
  1645. model.ImageRequest:
  1646. properties:
  1647. background:
  1648. type: string
  1649. model:
  1650. type: string
  1651. moderation:
  1652. type: string
  1653. "n":
  1654. type: integer
  1655. output_compression:
  1656. type: integer
  1657. output_format:
  1658. description: png, jpeg, webp
  1659. type: string
  1660. prompt:
  1661. type: string
  1662. quality:
  1663. description: auto, high, medium, low, hd, standard
  1664. type: string
  1665. response_format:
  1666. description: url, b64_json
  1667. type: string
  1668. size:
  1669. description: 1024x1024, 1536x1024, 1024x1536, auto, 256x256, 512x512, 1792x1024,
  1670. 1024x1792
  1671. type: string
  1672. style:
  1673. description: vivid, natural
  1674. type: string
  1675. user:
  1676. type: string
  1677. type: object
  1678. model.ImageResponse:
  1679. properties:
  1680. created:
  1681. type: integer
  1682. data:
  1683. items:
  1684. $ref: '#/definitions/model.ImageData'
  1685. type: array
  1686. usage:
  1687. allOf:
  1688. - $ref: '#/definitions/model.ImageUsage'
  1689. description: For gpt-image-1 only, the token usage information for the image
  1690. generation.
  1691. type: object
  1692. model.ImageUsage:
  1693. properties:
  1694. input_tokens:
  1695. description: The number of tokens (images and text) in the input prompt.
  1696. type: integer
  1697. input_tokens_details:
  1698. allOf:
  1699. - $ref: '#/definitions/model.ImageInputTokensDetails'
  1700. description: The input tokens detailed information for the image generation.
  1701. output_tokens:
  1702. description: The number of image tokens in the output image.
  1703. type: integer
  1704. total_tokens:
  1705. description: The total number of tokens (images and text) used for the image
  1706. generation.
  1707. type: integer
  1708. type: object
  1709. model.IncompleteDetails:
  1710. properties:
  1711. reason:
  1712. type: string
  1713. type: object
  1714. model.InputContent:
  1715. properties:
  1716. arguments:
  1717. type: string
  1718. call_id:
  1719. description: Fields for function_result type
  1720. type: string
  1721. id:
  1722. description: Fields for function_call type
  1723. type: string
  1724. name:
  1725. type: string
  1726. output:
  1727. type: string
  1728. text:
  1729. type: string
  1730. type:
  1731. type: string
  1732. type: object
  1733. model.InputItem:
  1734. properties:
  1735. arguments:
  1736. type: string
  1737. call_id:
  1738. description: Fields for function_result type
  1739. type: string
  1740. content:
  1741. items:
  1742. $ref: '#/definitions/model.InputContent'
  1743. type: array
  1744. id:
  1745. type: string
  1746. name:
  1747. description: Fields for function_call type
  1748. type: string
  1749. output:
  1750. type: string
  1751. role:
  1752. type: string
  1753. type:
  1754. type: string
  1755. type: object
  1756. model.InputItemList:
  1757. properties:
  1758. data:
  1759. items:
  1760. $ref: '#/definitions/model.InputItem'
  1761. type: array
  1762. first_id:
  1763. type: string
  1764. has_more:
  1765. type: boolean
  1766. last_id:
  1767. type: string
  1768. object:
  1769. type: string
  1770. type: object
  1771. model.JSONSchema:
  1772. properties:
  1773. description:
  1774. type: string
  1775. name:
  1776. type: string
  1777. schema:
  1778. additionalProperties: {}
  1779. type: object
  1780. strict:
  1781. type: boolean
  1782. type: object
  1783. model.Log:
  1784. properties:
  1785. channel:
  1786. type: integer
  1787. code:
  1788. type: integer
  1789. content:
  1790. type: string
  1791. created_at:
  1792. type: string
  1793. endpoint:
  1794. type: string
  1795. group:
  1796. type: string
  1797. id:
  1798. type: integer
  1799. ip:
  1800. type: string
  1801. metadata:
  1802. additionalProperties:
  1803. type: string
  1804. type: object
  1805. mode:
  1806. type: integer
  1807. model:
  1808. type: string
  1809. price:
  1810. $ref: '#/definitions/model.Price'
  1811. request_at:
  1812. type: string
  1813. request_detail:
  1814. $ref: '#/definitions/model.RequestDetail'
  1815. request_id:
  1816. type: string
  1817. retry_at:
  1818. type: string
  1819. retry_times:
  1820. type: integer
  1821. token_id:
  1822. type: integer
  1823. token_name:
  1824. type: string
  1825. ttfb_milliseconds:
  1826. type: integer
  1827. usage:
  1828. $ref: '#/definitions/model.Usage'
  1829. used_amount:
  1830. type: number
  1831. user:
  1832. description: https://platform.openai.com/docs/guides/safety-best-practices#end-user-ids
  1833. type: string
  1834. type: object
  1835. model.MCPEmbeddingConfig:
  1836. properties:
  1837. init:
  1838. additionalProperties:
  1839. type: string
  1840. type: object
  1841. reusing:
  1842. additionalProperties:
  1843. $ref: '#/definitions/model.ReusingParam'
  1844. type: object
  1845. type: object
  1846. model.MCPOpenAPIConfig:
  1847. properties:
  1848. authorization:
  1849. type: string
  1850. openapi_content:
  1851. type: string
  1852. openapi_spec:
  1853. type: string
  1854. server_addr:
  1855. type: string
  1856. v2:
  1857. type: boolean
  1858. type: object
  1859. model.MCPPrice:
  1860. properties:
  1861. default_tools_call_price:
  1862. type: number
  1863. tools_call_prices:
  1864. additionalProperties:
  1865. format: float64
  1866. type: number
  1867. type: object
  1868. type: object
  1869. model.Message:
  1870. properties:
  1871. content: {}
  1872. name:
  1873. type: string
  1874. reasoning_content:
  1875. type: string
  1876. role:
  1877. type: string
  1878. signature:
  1879. type: string
  1880. tool_call_id:
  1881. type: string
  1882. tool_calls:
  1883. items:
  1884. $ref: '#/definitions/model.ToolCall'
  1885. type: array
  1886. type: object
  1887. model.ModelConfig:
  1888. properties:
  1889. config:
  1890. additionalProperties: {}
  1891. type: object
  1892. created_at:
  1893. type: string
  1894. exclude_from_tests:
  1895. type: boolean
  1896. force_save_detail:
  1897. type: boolean
  1898. image_prices:
  1899. additionalProperties:
  1900. format: float64
  1901. type: number
  1902. description: map[size]price_per_image
  1903. type: object
  1904. image_quality_prices:
  1905. additionalProperties:
  1906. additionalProperties:
  1907. format: float64
  1908. type: number
  1909. type: object
  1910. description: map[size]map[quality]price_per_image
  1911. type: object
  1912. max_error_rate:
  1913. type: number
  1914. model:
  1915. type: string
  1916. owner:
  1917. $ref: '#/definitions/model.ModelOwner'
  1918. plugin:
  1919. additionalProperties:
  1920. additionalProperties: {}
  1921. type: object
  1922. type: object
  1923. price:
  1924. $ref: '#/definitions/model.Price'
  1925. retry_times:
  1926. type: integer
  1927. rpm:
  1928. type: integer
  1929. timeout_config:
  1930. $ref: '#/definitions/model.TimeoutConfig'
  1931. tpm:
  1932. type: integer
  1933. type:
  1934. $ref: '#/definitions/mode.Mode'
  1935. updated_at:
  1936. type: string
  1937. warn_error_rate:
  1938. type: number
  1939. type: object
  1940. model.ModelOwner:
  1941. enum:
  1942. - openai
  1943. - alibaba
  1944. - tencent
  1945. - xunfei
  1946. - deepseek
  1947. - moonshot
  1948. - minimax
  1949. - baidu
  1950. - google
  1951. - baai
  1952. - funaudiollm
  1953. - doubao
  1954. - fishaudio
  1955. - chatglm
  1956. - stabilityai
  1957. - netease
  1958. - ai360
  1959. - anthropic
  1960. - meta
  1961. - baichuan
  1962. - mistral
  1963. - openchat
  1964. - microsoft
  1965. - defog
  1966. - nexusflow
  1967. - cohere
  1968. - huggingface
  1969. - lingyiwanwu
  1970. - stepfun
  1971. - xai
  1972. - doc2x
  1973. - jina
  1974. type: string
  1975. x-enum-varnames:
  1976. - ModelOwnerOpenAI
  1977. - ModelOwnerAlibaba
  1978. - ModelOwnerTencent
  1979. - ModelOwnerXunfei
  1980. - ModelOwnerDeepSeek
  1981. - ModelOwnerMoonshot
  1982. - ModelOwnerMiniMax
  1983. - ModelOwnerBaidu
  1984. - ModelOwnerGoogle
  1985. - ModelOwnerBAAI
  1986. - ModelOwnerFunAudioLLM
  1987. - ModelOwnerDoubao
  1988. - ModelOwnerFishAudio
  1989. - ModelOwnerChatGLM
  1990. - ModelOwnerStabilityAI
  1991. - ModelOwnerNetease
  1992. - ModelOwnerAI360
  1993. - ModelOwnerAnthropic
  1994. - ModelOwnerMeta
  1995. - ModelOwnerBaichuan
  1996. - ModelOwnerMistral
  1997. - ModelOwnerOpenChat
  1998. - ModelOwnerMicrosoft
  1999. - ModelOwnerDefog
  2000. - ModelOwnerNexusFlow
  2001. - ModelOwnerCohere
  2002. - ModelOwnerHuggingFace
  2003. - ModelOwnerLingyiWanwu
  2004. - ModelOwnerStepFun
  2005. - ModelOwnerXAI
  2006. - ModelOwnerDoc2x
  2007. - ModelOwnerJina
  2008. model.Option:
  2009. properties:
  2010. key:
  2011. type: string
  2012. value:
  2013. type: string
  2014. type: object
  2015. model.OutputContent:
  2016. properties:
  2017. annotations:
  2018. items: {}
  2019. type: array
  2020. text:
  2021. type: string
  2022. type:
  2023. type: string
  2024. type: object
  2025. model.OutputItem:
  2026. properties:
  2027. arguments:
  2028. description: For function_call type
  2029. type: string
  2030. call_id:
  2031. description: For function_call type
  2032. type: string
  2033. content:
  2034. items:
  2035. $ref: '#/definitions/model.OutputContent'
  2036. type: array
  2037. id:
  2038. type: string
  2039. name:
  2040. description: For function_call type
  2041. type: string
  2042. role:
  2043. type: string
  2044. status:
  2045. $ref: '#/definitions/model.ResponseStatus'
  2046. summary:
  2047. description: For reasoning type
  2048. items:
  2049. type: string
  2050. type: array
  2051. type:
  2052. type: string
  2053. type: object
  2054. model.Params:
  2055. additionalProperties:
  2056. type: string
  2057. type: object
  2058. model.ParsePdfResponse:
  2059. properties:
  2060. markdown:
  2061. type: string
  2062. pages:
  2063. type: integer
  2064. type: object
  2065. model.Price:
  2066. properties:
  2067. audio_input_price:
  2068. type: number
  2069. audio_input_price_unit:
  2070. type: integer
  2071. cache_creation_price:
  2072. type: number
  2073. cache_creation_price_unit:
  2074. type: integer
  2075. cached_price:
  2076. type: number
  2077. cached_price_unit:
  2078. type: integer
  2079. conditional_prices:
  2080. items:
  2081. $ref: '#/definitions/model.ConditionalPrice'
  2082. type: array
  2083. image_input_price:
  2084. type: number
  2085. image_input_price_unit:
  2086. type: integer
  2087. input_price:
  2088. type: number
  2089. input_price_unit:
  2090. type: integer
  2091. output_price:
  2092. type: number
  2093. output_price_unit:
  2094. type: integer
  2095. per_request_price:
  2096. type: number
  2097. thinking_mode_output_price:
  2098. description: |-
  2099. when ThinkingModeOutputPrice and ReasoningTokens are not 0, OutputPrice and OutputPriceUnit
  2100. will be overwritten
  2101. type: number
  2102. thinking_mode_output_price_unit:
  2103. type: integer
  2104. web_search_price:
  2105. type: number
  2106. web_search_price_unit:
  2107. type: integer
  2108. type: object
  2109. model.PriceCondition:
  2110. properties:
  2111. end_time:
  2112. description: Unix timestamp, 0 means no end limit
  2113. type: integer
  2114. input_token_max:
  2115. type: integer
  2116. input_token_min:
  2117. type: integer
  2118. output_token_max:
  2119. type: integer
  2120. output_token_min:
  2121. type: integer
  2122. start_time:
  2123. description: Unix timestamp, 0 means no start limit
  2124. type: integer
  2125. type: object
  2126. model.PromptTokensDetails:
  2127. properties:
  2128. audio_tokens:
  2129. type: integer
  2130. cache_creation_tokens:
  2131. type: integer
  2132. cached_tokens:
  2133. type: integer
  2134. type: object
  2135. model.ProxyParamType:
  2136. enum:
  2137. - url
  2138. - header
  2139. - query
  2140. type: string
  2141. x-enum-varnames:
  2142. - ParamTypeURL
  2143. - ParamTypeHeader
  2144. - ParamTypeQuery
  2145. model.PublicMCP:
  2146. properties:
  2147. created_at:
  2148. type: string
  2149. description:
  2150. type: string
  2151. description_cn:
  2152. type: string
  2153. embed_config:
  2154. $ref: '#/definitions/model.MCPEmbeddingConfig'
  2155. github_url:
  2156. type: string
  2157. id:
  2158. type: string
  2159. logo_url:
  2160. type: string
  2161. name:
  2162. type: string
  2163. name_cn:
  2164. type: string
  2165. openapi_config:
  2166. $ref: '#/definitions/model.MCPOpenAPIConfig'
  2167. price:
  2168. $ref: '#/definitions/model.MCPPrice'
  2169. proxy_config:
  2170. $ref: '#/definitions/model.PublicMCPProxyConfig'
  2171. readme:
  2172. type: string
  2173. readme_cn:
  2174. type: string
  2175. readme_cn_url:
  2176. type: string
  2177. readme_url:
  2178. type: string
  2179. status:
  2180. $ref: '#/definitions/model.PublicMCPStatus'
  2181. tags:
  2182. items:
  2183. type: string
  2184. type: array
  2185. test_config:
  2186. allOf:
  2187. - $ref: '#/definitions/model.TestConfig'
  2188. description: only used by list tools
  2189. type:
  2190. $ref: '#/definitions/model.PublicMCPType'
  2191. update_at:
  2192. type: string
  2193. type: object
  2194. model.PublicMCPProxyConfig:
  2195. properties:
  2196. headers:
  2197. additionalProperties:
  2198. type: string
  2199. type: object
  2200. querys:
  2201. additionalProperties:
  2202. type: string
  2203. type: object
  2204. reusing:
  2205. additionalProperties:
  2206. $ref: '#/definitions/model.PublicMCPProxyReusingParam'
  2207. type: object
  2208. url:
  2209. type: string
  2210. type: object
  2211. model.PublicMCPProxyReusingParam:
  2212. properties:
  2213. description:
  2214. type: string
  2215. name:
  2216. type: string
  2217. required:
  2218. type: boolean
  2219. type:
  2220. $ref: '#/definitions/model.ProxyParamType'
  2221. type: object
  2222. model.PublicMCPReusingParam:
  2223. properties:
  2224. created_at:
  2225. type: string
  2226. group_id:
  2227. type: string
  2228. mcp_id:
  2229. type: string
  2230. params:
  2231. $ref: '#/definitions/model.Params'
  2232. update_at:
  2233. type: string
  2234. type: object
  2235. model.PublicMCPStatus:
  2236. enum:
  2237. - 1
  2238. - 2
  2239. type: integer
  2240. x-enum-varnames:
  2241. - PublicMCPStatusEnabled
  2242. - PublicMCPStatusDisabled
  2243. model.PublicMCPType:
  2244. enum:
  2245. - mcp_proxy_sse
  2246. - mcp_proxy_streamable
  2247. - mcp_docs
  2248. - mcp_openapi
  2249. - mcp_embed
  2250. type: string
  2251. x-enum-comments:
  2252. PublicMCPTypeDocs: read only
  2253. x-enum-descriptions:
  2254. - ""
  2255. - ""
  2256. - read only
  2257. - ""
  2258. - ""
  2259. x-enum-varnames:
  2260. - PublicMCPTypeProxySSE
  2261. - PublicMCPTypeProxyStreamable
  2262. - PublicMCPTypeDocs
  2263. - PublicMCPTypeOpenAPI
  2264. - PublicMCPTypeEmbed
  2265. model.RequestDetail:
  2266. properties:
  2267. id:
  2268. type: integer
  2269. log_id:
  2270. type: integer
  2271. request_body:
  2272. type: string
  2273. request_body_truncated:
  2274. type: boolean
  2275. response_body:
  2276. type: string
  2277. response_body_truncated:
  2278. type: boolean
  2279. type: object
  2280. model.RerankMeta:
  2281. properties:
  2282. model:
  2283. type: string
  2284. tokens:
  2285. $ref: '#/definitions/model.RerankMetaTokens'
  2286. type: object
  2287. model.RerankMetaTokens:
  2288. properties:
  2289. input_tokens:
  2290. type: integer
  2291. output_tokens:
  2292. type: integer
  2293. type: object
  2294. model.RerankRequest:
  2295. properties:
  2296. documents:
  2297. items:
  2298. type: string
  2299. type: array
  2300. max_chunks_per_doc:
  2301. type: integer
  2302. model:
  2303. type: string
  2304. overlap_tokens:
  2305. type: integer
  2306. query:
  2307. type: string
  2308. return_documents:
  2309. type: boolean
  2310. top_n:
  2311. type: integer
  2312. type: object
  2313. model.RerankResponse:
  2314. properties:
  2315. id:
  2316. type: string
  2317. meta:
  2318. $ref: '#/definitions/model.RerankMeta'
  2319. results:
  2320. items:
  2321. $ref: '#/definitions/model.RerankResult'
  2322. type: array
  2323. type: object
  2324. model.RerankResult:
  2325. properties:
  2326. document:
  2327. $ref: '#/definitions/model.Document'
  2328. index:
  2329. type: integer
  2330. relevance_score:
  2331. type: number
  2332. type: object
  2333. model.Response:
  2334. properties:
  2335. created_at:
  2336. type: integer
  2337. error:
  2338. $ref: '#/definitions/model.ResponseError'
  2339. id:
  2340. type: string
  2341. incomplete_details:
  2342. $ref: '#/definitions/model.IncompleteDetails'
  2343. instructions:
  2344. type: string
  2345. max_output_tokens:
  2346. type: integer
  2347. metadata:
  2348. additionalProperties: {}
  2349. type: object
  2350. model:
  2351. type: string
  2352. object:
  2353. type: string
  2354. output:
  2355. items:
  2356. $ref: '#/definitions/model.OutputItem'
  2357. type: array
  2358. parallel_tool_calls:
  2359. type: boolean
  2360. previous_response_id:
  2361. type: string
  2362. reasoning:
  2363. $ref: '#/definitions/model.ResponseReasoning'
  2364. status:
  2365. $ref: '#/definitions/model.ResponseStatus'
  2366. store:
  2367. type: boolean
  2368. temperature:
  2369. type: number
  2370. text:
  2371. $ref: '#/definitions/model.ResponseText'
  2372. tool_choice: {}
  2373. tools:
  2374. items:
  2375. $ref: '#/definitions/model.ResponseTool'
  2376. type: array
  2377. top_p:
  2378. type: number
  2379. truncation:
  2380. type: string
  2381. usage:
  2382. $ref: '#/definitions/model.ResponseUsage'
  2383. user:
  2384. type: string
  2385. type: object
  2386. model.ResponseError:
  2387. properties:
  2388. code:
  2389. type: string
  2390. message:
  2391. type: string
  2392. type: object
  2393. model.ResponseFormat:
  2394. properties:
  2395. json_schema:
  2396. $ref: '#/definitions/model.JSONSchema'
  2397. type:
  2398. type: string
  2399. type: object
  2400. model.ResponseReasoning:
  2401. properties:
  2402. effort:
  2403. type: string
  2404. summary:
  2405. type: string
  2406. type: object
  2407. model.ResponseStatus:
  2408. enum:
  2409. - in_progress
  2410. - completed
  2411. - failed
  2412. - incomplete
  2413. - cancelled
  2414. type: string
  2415. x-enum-varnames:
  2416. - ResponseStatusInProgress
  2417. - ResponseStatusCompleted
  2418. - ResponseStatusFailed
  2419. - ResponseStatusIncomplete
  2420. - ResponseStatusCancelled
  2421. model.ResponseText:
  2422. properties:
  2423. format:
  2424. $ref: '#/definitions/model.ResponseTextFormat'
  2425. type: object
  2426. model.ResponseTextFormat:
  2427. properties:
  2428. type:
  2429. type: string
  2430. type: object
  2431. model.ResponseTool:
  2432. properties:
  2433. description:
  2434. type: string
  2435. name:
  2436. type: string
  2437. parameters: {}
  2438. type:
  2439. type: string
  2440. type: object
  2441. model.ResponseUsage:
  2442. properties:
  2443. input_tokens:
  2444. type: integer
  2445. input_tokens_details:
  2446. $ref: '#/definitions/model.ResponseUsageDetails'
  2447. output_tokens:
  2448. type: integer
  2449. output_tokens_details:
  2450. $ref: '#/definitions/model.ResponseUsageDetails'
  2451. total_tokens:
  2452. type: integer
  2453. type: object
  2454. model.ResponseUsageDetails:
  2455. properties:
  2456. cached_tokens:
  2457. type: integer
  2458. reasoning_tokens:
  2459. type: integer
  2460. type: object
  2461. model.ReusingParam:
  2462. properties:
  2463. description:
  2464. type: string
  2465. name:
  2466. type: string
  2467. required:
  2468. type: boolean
  2469. type: object
  2470. model.StreamOptions:
  2471. properties:
  2472. include_usage:
  2473. type: boolean
  2474. type: object
  2475. model.SttJSONResponse:
  2476. properties:
  2477. text:
  2478. type: string
  2479. type: object
  2480. model.SummaryDataV2:
  2481. properties:
  2482. audio_input_tokens:
  2483. type: integer
  2484. cache_creation_tokens:
  2485. type: integer
  2486. cached_tokens:
  2487. type: integer
  2488. channel_id:
  2489. type: integer
  2490. exception_count:
  2491. type: integer
  2492. group_id:
  2493. type: string
  2494. image_input_tokens:
  2495. type: integer
  2496. input_tokens:
  2497. type: integer
  2498. max_rpm:
  2499. type: integer
  2500. max_tpm:
  2501. type: integer
  2502. model:
  2503. type: string
  2504. output_tokens:
  2505. type: integer
  2506. reasoning_tokens:
  2507. type: integer
  2508. request_count:
  2509. type: integer
  2510. retry_count:
  2511. type: integer
  2512. status_400_count:
  2513. type: integer
  2514. status_429_count:
  2515. type: integer
  2516. status_4xx_count:
  2517. type: integer
  2518. status_500_count:
  2519. type: integer
  2520. status_5xx_count:
  2521. type: integer
  2522. timestamp:
  2523. type: integer
  2524. token_name:
  2525. type: string
  2526. total_time_milliseconds:
  2527. type: integer
  2528. total_tokens:
  2529. type: integer
  2530. total_ttfb_milliseconds:
  2531. type: integer
  2532. used_amount:
  2533. type: number
  2534. web_search_count:
  2535. type: integer
  2536. type: object
  2537. model.TestConfig:
  2538. properties:
  2539. enabled:
  2540. type: boolean
  2541. params:
  2542. $ref: '#/definitions/model.Params'
  2543. type: object
  2544. model.TextResponse:
  2545. properties:
  2546. choices:
  2547. items:
  2548. $ref: '#/definitions/model.TextResponseChoice'
  2549. type: array
  2550. created:
  2551. type: integer
  2552. id:
  2553. type: string
  2554. model:
  2555. type: string
  2556. object:
  2557. type: string
  2558. usage:
  2559. $ref: '#/definitions/model.ChatUsage'
  2560. type: object
  2561. model.TextResponseChoice:
  2562. properties:
  2563. finish_reason:
  2564. $ref: '#/definitions/model.FinishReason'
  2565. index:
  2566. type: integer
  2567. message:
  2568. $ref: '#/definitions/model.Message'
  2569. text:
  2570. type: string
  2571. type: object
  2572. model.TextToSpeechRequest:
  2573. properties:
  2574. input:
  2575. type: string
  2576. model:
  2577. type: string
  2578. response_format:
  2579. type: string
  2580. speed:
  2581. type: number
  2582. stream_format:
  2583. type: string
  2584. voice:
  2585. type: string
  2586. required:
  2587. - input
  2588. - model
  2589. - voice
  2590. type: object
  2591. model.TimeSummaryDataV2:
  2592. properties:
  2593. summary:
  2594. items:
  2595. $ref: '#/definitions/model.SummaryDataV2'
  2596. type: array
  2597. timestamp:
  2598. type: integer
  2599. type: object
  2600. model.TimeoutConfig:
  2601. properties:
  2602. request_timeout:
  2603. type: integer
  2604. stream_request_timeout:
  2605. type: integer
  2606. type: object
  2607. model.Tool:
  2608. properties:
  2609. function:
  2610. $ref: '#/definitions/model.Function'
  2611. type:
  2612. type: string
  2613. type: object
  2614. model.ToolCall:
  2615. properties:
  2616. extra_content:
  2617. $ref: '#/definitions/model.ExtraContent'
  2618. function:
  2619. $ref: '#/definitions/model.Function'
  2620. id:
  2621. type: string
  2622. index:
  2623. type: integer
  2624. type:
  2625. type: string
  2626. type: object
  2627. model.UpdateGroupRequest:
  2628. properties:
  2629. available_sets:
  2630. items:
  2631. type: string
  2632. type: array
  2633. balance_alert_enabled:
  2634. type: boolean
  2635. balance_alert_threshold:
  2636. type: number
  2637. rpm_ratio:
  2638. type: number
  2639. status:
  2640. type: integer
  2641. tpm_ratio:
  2642. type: number
  2643. type: object
  2644. model.UpdateTokenRequest:
  2645. properties:
  2646. models:
  2647. items:
  2648. type: string
  2649. type: array
  2650. name:
  2651. type: string
  2652. period_last_update_time:
  2653. type: integer
  2654. period_quota:
  2655. type: number
  2656. period_type:
  2657. type: string
  2658. quota:
  2659. description: Quota system
  2660. type: number
  2661. status:
  2662. type: integer
  2663. subnets:
  2664. items:
  2665. type: string
  2666. type: array
  2667. type: object
  2668. model.Usage:
  2669. properties:
  2670. audio_input_tokens:
  2671. type: integer
  2672. cache_creation_tokens:
  2673. type: integer
  2674. cached_tokens:
  2675. type: integer
  2676. image_input_tokens:
  2677. type: integer
  2678. input_tokens:
  2679. type: integer
  2680. output_tokens:
  2681. type: integer
  2682. reasoning_tokens:
  2683. type: integer
  2684. total_tokens:
  2685. type: integer
  2686. web_search_count:
  2687. type: integer
  2688. type: object
  2689. model.VideoGenerationJob:
  2690. properties:
  2691. created_at:
  2692. type: integer
  2693. expires_at:
  2694. type: integer
  2695. finish_reason:
  2696. type: string
  2697. finished_at:
  2698. type: integer
  2699. generations:
  2700. items:
  2701. $ref: '#/definitions/model.VideoGenerations'
  2702. type: array
  2703. height:
  2704. type: integer
  2705. id:
  2706. type: string
  2707. model:
  2708. type: string
  2709. n_seconds:
  2710. type: integer
  2711. n_variants:
  2712. type: integer
  2713. object:
  2714. type: string
  2715. prompt:
  2716. type: string
  2717. status:
  2718. $ref: '#/definitions/model.VideoGenerationJobStatus'
  2719. width:
  2720. type: integer
  2721. type: object
  2722. model.VideoGenerationJobRequest:
  2723. properties:
  2724. height:
  2725. type: integer
  2726. model:
  2727. type: string
  2728. n_seconds:
  2729. type: integer
  2730. n_variants:
  2731. type: integer
  2732. prompt:
  2733. type: string
  2734. width:
  2735. type: integer
  2736. type: object
  2737. model.VideoGenerationJobStatus:
  2738. enum:
  2739. - queued
  2740. - processing
  2741. - running
  2742. - succeeded
  2743. type: string
  2744. x-enum-varnames:
  2745. - VideoGenerationJobStatusQueued
  2746. - VideoGenerationJobStatusProcessing
  2747. - VideoGenerationJobStatusRunning
  2748. - VideoGenerationJobStatusSucceeded
  2749. model.VideoGenerations:
  2750. properties:
  2751. created_at:
  2752. type: integer
  2753. height:
  2754. type: integer
  2755. id:
  2756. type: string
  2757. job_id:
  2758. type: string
  2759. n_seconds:
  2760. type: integer
  2761. object:
  2762. type: string
  2763. prompt:
  2764. type: string
  2765. width:
  2766. type: integer
  2767. type: object
  2768. openai.SubscriptionResponse:
  2769. properties:
  2770. access_until:
  2771. type: integer
  2772. hard_limit_usd:
  2773. type: number
  2774. has_payment_method:
  2775. type: boolean
  2776. object:
  2777. type: string
  2778. soft_limit_usd:
  2779. type: number
  2780. system_hard_limit_usd:
  2781. type: number
  2782. type: object
  2783. openai.UsageResponse:
  2784. properties:
  2785. object:
  2786. type: string
  2787. total_usage:
  2788. description: DailyCosts []OpenAIUsageDailyCost `json:"daily_costs"`
  2789. type: number
  2790. type: object
  2791. info:
  2792. contact: {}
  2793. title: AI Proxy Swagger API
  2794. version: "1.0"
  2795. paths:
  2796. /api/channel/:
  2797. post:
  2798. consumes:
  2799. - application/json
  2800. description: Adds a new channel to the system
  2801. parameters:
  2802. - description: Channel information
  2803. in: body
  2804. name: channel
  2805. required: true
  2806. schema:
  2807. $ref: '#/definitions/controller.AddChannelRequest'
  2808. produces:
  2809. - application/json
  2810. responses:
  2811. "200":
  2812. description: OK
  2813. schema:
  2814. $ref: '#/definitions/middleware.APIResponse'
  2815. security:
  2816. - ApiKeyAuth: []
  2817. summary: Add a single channel
  2818. tags:
  2819. - channel
  2820. /api/channel/{id}:
  2821. delete:
  2822. description: Deletes a channel by its ID
  2823. parameters:
  2824. - description: Channel ID
  2825. in: path
  2826. name: id
  2827. required: true
  2828. type: integer
  2829. produces:
  2830. - application/json
  2831. responses:
  2832. "200":
  2833. description: OK
  2834. schema:
  2835. $ref: '#/definitions/middleware.APIResponse'
  2836. security:
  2837. - ApiKeyAuth: []
  2838. summary: Delete a channel
  2839. tags:
  2840. - channel
  2841. get:
  2842. description: Returns detailed information about a specific channel
  2843. parameters:
  2844. - description: Channel ID
  2845. in: path
  2846. name: id
  2847. required: true
  2848. type: integer
  2849. produces:
  2850. - application/json
  2851. responses:
  2852. "200":
  2853. description: OK
  2854. schema:
  2855. allOf:
  2856. - $ref: '#/definitions/middleware.APIResponse'
  2857. - properties:
  2858. data:
  2859. $ref: '#/definitions/model.Channel'
  2860. type: object
  2861. security:
  2862. - ApiKeyAuth: []
  2863. summary: Get a channel by ID
  2864. tags:
  2865. - channel
  2866. put:
  2867. consumes:
  2868. - application/json
  2869. description: Updates an existing channel by its ID
  2870. parameters:
  2871. - description: Channel ID
  2872. in: path
  2873. name: id
  2874. required: true
  2875. type: integer
  2876. - description: Updated channel information
  2877. in: body
  2878. name: channel
  2879. required: true
  2880. schema:
  2881. $ref: '#/definitions/controller.AddChannelRequest'
  2882. produces:
  2883. - application/json
  2884. responses:
  2885. "200":
  2886. description: OK
  2887. schema:
  2888. allOf:
  2889. - $ref: '#/definitions/middleware.APIResponse'
  2890. - properties:
  2891. data:
  2892. $ref: '#/definitions/model.Channel'
  2893. type: object
  2894. security:
  2895. - ApiKeyAuth: []
  2896. summary: Update a channel
  2897. tags:
  2898. - channel
  2899. /api/channel/{id}/{model}:
  2900. get:
  2901. description: Tests a single model in the channel
  2902. parameters:
  2903. - description: Channel ID
  2904. in: path
  2905. name: id
  2906. required: true
  2907. type: integer
  2908. - description: Model name
  2909. in: path
  2910. name: model
  2911. required: true
  2912. type: string
  2913. produces:
  2914. - application/json
  2915. responses:
  2916. "200":
  2917. description: OK
  2918. schema:
  2919. allOf:
  2920. - $ref: '#/definitions/middleware.APIResponse'
  2921. - properties:
  2922. data:
  2923. $ref: '#/definitions/model.ChannelTest'
  2924. type: object
  2925. security:
  2926. - ApiKeyAuth: []
  2927. summary: Test channel model
  2928. tags:
  2929. - channel
  2930. /api/channel/{id}/balance:
  2931. get:
  2932. description: Updates the balance for a single channel
  2933. parameters:
  2934. - description: Channel ID
  2935. in: path
  2936. name: id
  2937. required: true
  2938. type: integer
  2939. produces:
  2940. - application/json
  2941. responses:
  2942. "200":
  2943. description: OK
  2944. schema:
  2945. allOf:
  2946. - $ref: '#/definitions/middleware.APIResponse'
  2947. - properties:
  2948. data:
  2949. format: float64
  2950. type: number
  2951. type: object
  2952. security:
  2953. - ApiKeyAuth: []
  2954. summary: Update channel balance
  2955. tags:
  2956. - channel
  2957. /api/channel/{id}/status:
  2958. post:
  2959. consumes:
  2960. - application/json
  2961. description: Updates the status of a channel by its ID
  2962. parameters:
  2963. - description: Channel ID
  2964. in: path
  2965. name: id
  2966. required: true
  2967. type: integer
  2968. - description: Status information
  2969. in: body
  2970. name: status
  2971. required: true
  2972. schema:
  2973. $ref: '#/definitions/controller.UpdateChannelStatusRequest'
  2974. produces:
  2975. - application/json
  2976. responses:
  2977. "200":
  2978. description: OK
  2979. schema:
  2980. $ref: '#/definitions/middleware.APIResponse'
  2981. security:
  2982. - ApiKeyAuth: []
  2983. summary: Update channel status
  2984. tags:
  2985. - channel
  2986. /api/channel/{id}/test:
  2987. get:
  2988. description: Tests all models in the channel
  2989. parameters:
  2990. - description: Channel ID
  2991. in: path
  2992. name: id
  2993. required: true
  2994. type: integer
  2995. - description: Return success
  2996. in: query
  2997. name: return_success
  2998. type: boolean
  2999. - description: Success body
  3000. in: query
  3001. name: success_body
  3002. type: boolean
  3003. - description: Stream
  3004. in: query
  3005. name: stream
  3006. type: boolean
  3007. produces:
  3008. - application/json
  3009. responses:
  3010. "200":
  3011. description: OK
  3012. schema:
  3013. allOf:
  3014. - $ref: '#/definitions/middleware.APIResponse'
  3015. - properties:
  3016. data:
  3017. items:
  3018. $ref: '#/definitions/controller.TestResult'
  3019. type: array
  3020. type: object
  3021. security:
  3022. - ApiKeyAuth: []
  3023. summary: Test channel models
  3024. tags:
  3025. - channel
  3026. /api/channels/:
  3027. get:
  3028. description: Returns a paginated list of channels with optional filters
  3029. parameters:
  3030. - description: Page number
  3031. in: query
  3032. name: page
  3033. type: integer
  3034. - description: Items per page
  3035. in: query
  3036. name: per_page
  3037. type: integer
  3038. - description: Filter by id
  3039. in: query
  3040. name: id
  3041. type: integer
  3042. - description: Filter by name
  3043. in: query
  3044. name: name
  3045. type: string
  3046. - description: Filter by key
  3047. in: query
  3048. name: key
  3049. type: string
  3050. - description: Filter by channel type
  3051. in: query
  3052. name: channel_type
  3053. type: integer
  3054. - description: Filter by base URL
  3055. in: query
  3056. name: base_url
  3057. type: string
  3058. - description: Order by field
  3059. in: query
  3060. name: order
  3061. type: string
  3062. produces:
  3063. - application/json
  3064. responses:
  3065. "200":
  3066. description: OK
  3067. schema:
  3068. allOf:
  3069. - $ref: '#/definitions/middleware.APIResponse'
  3070. - properties:
  3071. data:
  3072. additionalProperties:
  3073. allOf:
  3074. - {}
  3075. - properties:
  3076. channels:
  3077. items:
  3078. $ref: '#/definitions/model.Channel'
  3079. type: array
  3080. total:
  3081. type: integer
  3082. type: object
  3083. type: object
  3084. type: object
  3085. security:
  3086. - ApiKeyAuth: []
  3087. summary: Get channels with pagination
  3088. tags:
  3089. - channels
  3090. post:
  3091. consumes:
  3092. - application/json
  3093. description: Adds multiple channels in a batch operation
  3094. parameters:
  3095. - description: Channel information
  3096. in: body
  3097. name: channels
  3098. required: true
  3099. schema:
  3100. items:
  3101. $ref: '#/definitions/controller.AddChannelRequest'
  3102. type: array
  3103. produces:
  3104. - application/json
  3105. responses:
  3106. "200":
  3107. description: OK
  3108. schema:
  3109. $ref: '#/definitions/middleware.APIResponse'
  3110. security:
  3111. - ApiKeyAuth: []
  3112. summary: Add multiple channels
  3113. tags:
  3114. - channels
  3115. /api/channels/all:
  3116. get:
  3117. description: Returns a list of all channels without pagination
  3118. produces:
  3119. - application/json
  3120. responses:
  3121. "200":
  3122. description: OK
  3123. schema:
  3124. allOf:
  3125. - $ref: '#/definitions/middleware.APIResponse'
  3126. - properties:
  3127. data:
  3128. items:
  3129. $ref: '#/definitions/model.Channel'
  3130. type: array
  3131. type: object
  3132. security:
  3133. - ApiKeyAuth: []
  3134. summary: Get all channels
  3135. tags:
  3136. - channels
  3137. /api/channels/balance:
  3138. get:
  3139. description: Updates the balance for all channels
  3140. produces:
  3141. - application/json
  3142. responses:
  3143. "200":
  3144. description: OK
  3145. schema:
  3146. $ref: '#/definitions/middleware.APIResponse'
  3147. security:
  3148. - ApiKeyAuth: []
  3149. summary: Update all channels balance
  3150. tags:
  3151. - channel
  3152. /api/channels/batch_delete:
  3153. post:
  3154. consumes:
  3155. - application/json
  3156. description: Deletes multiple channels by their IDs
  3157. parameters:
  3158. - description: Channel IDs
  3159. in: body
  3160. name: ids
  3161. required: true
  3162. schema:
  3163. items:
  3164. type: integer
  3165. type: array
  3166. produces:
  3167. - application/json
  3168. responses:
  3169. "200":
  3170. description: OK
  3171. schema:
  3172. $ref: '#/definitions/middleware.APIResponse'
  3173. security:
  3174. - ApiKeyAuth: []
  3175. summary: Delete multiple channels
  3176. tags:
  3177. - channels
  3178. /api/channels/import/oneapi:
  3179. post:
  3180. description: Imports channels from OneAPI
  3181. parameters:
  3182. - description: Import channel from OneAPI request
  3183. in: body
  3184. name: request
  3185. required: true
  3186. schema:
  3187. $ref: '#/definitions/controller.ImportChannelFromOneAPIRequest'
  3188. produces:
  3189. - application/json
  3190. responses:
  3191. "200":
  3192. description: OK
  3193. schema:
  3194. allOf:
  3195. - $ref: '#/definitions/middleware.APIResponse'
  3196. - properties:
  3197. data:
  3198. items: {}
  3199. type: array
  3200. type: object
  3201. security:
  3202. - ApiKeyAuth: []
  3203. summary: Import channel from OneAPI
  3204. tags:
  3205. - channels
  3206. /api/channels/search:
  3207. get:
  3208. description: Search channels with keyword and optional filters
  3209. parameters:
  3210. - description: Search keyword
  3211. in: query
  3212. name: keyword
  3213. required: true
  3214. type: string
  3215. - description: Page number
  3216. in: query
  3217. name: page
  3218. type: integer
  3219. - description: Items per page
  3220. in: query
  3221. name: per_page
  3222. type: integer
  3223. - description: Filter by id
  3224. in: query
  3225. name: id
  3226. type: integer
  3227. - description: Filter by name
  3228. in: query
  3229. name: name
  3230. type: string
  3231. - description: Filter by key
  3232. in: query
  3233. name: key
  3234. type: string
  3235. - description: Filter by channel type
  3236. in: query
  3237. name: channel_type
  3238. type: integer
  3239. - description: Filter by base URL
  3240. in: query
  3241. name: base_url
  3242. type: string
  3243. - description: Order by field
  3244. in: query
  3245. name: order
  3246. type: string
  3247. produces:
  3248. - application/json
  3249. responses:
  3250. "200":
  3251. description: OK
  3252. schema:
  3253. allOf:
  3254. - $ref: '#/definitions/middleware.APIResponse'
  3255. - properties:
  3256. data:
  3257. additionalProperties:
  3258. allOf:
  3259. - {}
  3260. - properties:
  3261. channels:
  3262. items:
  3263. $ref: '#/definitions/model.Channel'
  3264. type: array
  3265. total:
  3266. type: integer
  3267. type: object
  3268. type: object
  3269. type: object
  3270. security:
  3271. - ApiKeyAuth: []
  3272. summary: Search channels
  3273. tags:
  3274. - channels
  3275. /api/channels/test:
  3276. get:
  3277. description: Tests all channels
  3278. parameters:
  3279. - description: Test disabled
  3280. in: query
  3281. name: test_disabled
  3282. type: boolean
  3283. - description: Return success
  3284. in: query
  3285. name: return_success
  3286. type: boolean
  3287. - description: Success body
  3288. in: query
  3289. name: success_body
  3290. type: boolean
  3291. - description: Stream
  3292. in: query
  3293. name: stream
  3294. type: boolean
  3295. produces:
  3296. - application/json
  3297. responses:
  3298. "200":
  3299. description: OK
  3300. schema:
  3301. allOf:
  3302. - $ref: '#/definitions/middleware.APIResponse'
  3303. - properties:
  3304. data:
  3305. items:
  3306. $ref: '#/definitions/controller.TestResult'
  3307. type: array
  3308. type: object
  3309. security:
  3310. - ApiKeyAuth: []
  3311. summary: Test all channels
  3312. tags:
  3313. - channel
  3314. /api/channels/type_metas:
  3315. get:
  3316. description: Returns metadata for all channel types
  3317. produces:
  3318. - application/json
  3319. responses:
  3320. "200":
  3321. description: OK
  3322. schema:
  3323. allOf:
  3324. - $ref: '#/definitions/middleware.APIResponse'
  3325. - properties:
  3326. data:
  3327. additionalProperties:
  3328. $ref: '#/definitions/adaptors.AdaptorMeta'
  3329. type: object
  3330. type: object
  3331. security:
  3332. - ApiKeyAuth: []
  3333. summary: Get channel type metadata
  3334. tags:
  3335. - channels
  3336. /api/dashboard/:
  3337. get:
  3338. description: Returns the general dashboard data including usage statistics and
  3339. metrics
  3340. parameters:
  3341. - description: Channel ID
  3342. in: query
  3343. name: channel
  3344. type: integer
  3345. - description: Model name
  3346. in: query
  3347. name: model
  3348. type: string
  3349. - description: Start second timestamp
  3350. format: int64
  3351. in: query
  3352. name: start_timestamp
  3353. type: integer
  3354. - description: End second timestamp
  3355. format: int64
  3356. in: query
  3357. name: end_timestamp
  3358. type: integer
  3359. - description: Timezone, default is Local
  3360. in: query
  3361. name: timezone
  3362. type: string
  3363. - description: Time span type (minute, hour, day, month)
  3364. in: query
  3365. name: timespan
  3366. type: string
  3367. produces:
  3368. - application/json
  3369. responses:
  3370. "200":
  3371. description: OK
  3372. schema:
  3373. allOf:
  3374. - $ref: '#/definitions/middleware.APIResponse'
  3375. - properties:
  3376. data:
  3377. $ref: '#/definitions/model.DashboardResponse'
  3378. type: object
  3379. security:
  3380. - ApiKeyAuth: []
  3381. summary: Get dashboard data
  3382. tags:
  3383. - dashboard
  3384. /api/dashboard/{group}:
  3385. get:
  3386. description: Returns dashboard data and metrics specific to the given group
  3387. parameters:
  3388. - description: Group
  3389. in: path
  3390. name: group
  3391. required: true
  3392. type: string
  3393. - description: Token name
  3394. in: query
  3395. name: token_name
  3396. type: string
  3397. - description: Model or *
  3398. in: query
  3399. name: model
  3400. type: string
  3401. - description: Start second timestamp
  3402. format: int64
  3403. in: query
  3404. name: start_timestamp
  3405. type: integer
  3406. - description: End second timestamp
  3407. format: int64
  3408. in: query
  3409. name: end_timestamp
  3410. type: integer
  3411. - description: Timezone, default is Local
  3412. in: query
  3413. name: timezone
  3414. type: string
  3415. - description: Time span type (minute, hour, day, month)
  3416. in: query
  3417. name: timespan
  3418. type: string
  3419. produces:
  3420. - application/json
  3421. responses:
  3422. "200":
  3423. description: OK
  3424. schema:
  3425. allOf:
  3426. - $ref: '#/definitions/middleware.APIResponse'
  3427. - properties:
  3428. data:
  3429. $ref: '#/definitions/model.GroupDashboardResponse'
  3430. type: object
  3431. security:
  3432. - ApiKeyAuth: []
  3433. summary: Get dashboard data for a specific group
  3434. tags:
  3435. - dashboard
  3436. /api/dashboard/{group}/models:
  3437. get:
  3438. description: Returns model-specific metrics and usage data for the given group
  3439. parameters:
  3440. - description: Group
  3441. in: path
  3442. name: group
  3443. required: true
  3444. type: string
  3445. produces:
  3446. - application/json
  3447. responses:
  3448. "200":
  3449. description: OK
  3450. schema:
  3451. allOf:
  3452. - $ref: '#/definitions/middleware.APIResponse'
  3453. - properties:
  3454. data:
  3455. items:
  3456. $ref: '#/definitions/controller.GroupModel'
  3457. type: array
  3458. type: object
  3459. security:
  3460. - ApiKeyAuth: []
  3461. summary: Get model usage data for a specific group
  3462. tags:
  3463. - dashboard
  3464. /api/dashboardv2/:
  3465. get:
  3466. description: Returns model-specific metrics and usage data for the given channel
  3467. parameters:
  3468. - description: Channel ID
  3469. in: query
  3470. name: channel
  3471. type: integer
  3472. - description: Model name
  3473. in: query
  3474. name: model
  3475. type: string
  3476. - description: Start timestamp
  3477. format: int64
  3478. in: query
  3479. name: start_timestamp
  3480. type: integer
  3481. - description: End timestamp
  3482. format: int64
  3483. in: query
  3484. name: end_timestamp
  3485. type: integer
  3486. - description: Timezone, default is Local
  3487. in: query
  3488. name: timezone
  3489. type: string
  3490. - description: Time span type (minute, hour, day, month)
  3491. in: query
  3492. name: timespan
  3493. type: string
  3494. produces:
  3495. - application/json
  3496. responses:
  3497. "200":
  3498. description: OK
  3499. schema:
  3500. allOf:
  3501. - $ref: '#/definitions/middleware.APIResponse'
  3502. - properties:
  3503. data:
  3504. items:
  3505. $ref: '#/definitions/model.TimeSummaryDataV2'
  3506. type: array
  3507. type: object
  3508. security:
  3509. - ApiKeyAuth: []
  3510. summary: Get model usage data for a specific channel
  3511. tags:
  3512. - dashboard
  3513. /api/dashboardv2/{group}:
  3514. get:
  3515. description: Returns model-specific metrics and usage data for the given group
  3516. parameters:
  3517. - description: Group
  3518. in: path
  3519. name: group
  3520. required: true
  3521. type: string
  3522. - description: Token name
  3523. in: query
  3524. name: token_name
  3525. type: string
  3526. - description: Model name
  3527. in: query
  3528. name: model
  3529. type: string
  3530. - description: Start timestamp
  3531. format: int64
  3532. in: query
  3533. name: start_timestamp
  3534. type: integer
  3535. - description: End timestamp
  3536. format: int64
  3537. in: query
  3538. name: end_timestamp
  3539. type: integer
  3540. - description: Timezone, default is Local
  3541. in: query
  3542. name: timezone
  3543. type: string
  3544. - description: Time span type (minute, hour, day, month)
  3545. in: query
  3546. name: timespan
  3547. type: string
  3548. produces:
  3549. - application/json
  3550. responses:
  3551. "200":
  3552. description: OK
  3553. schema:
  3554. allOf:
  3555. - $ref: '#/definitions/middleware.APIResponse'
  3556. - properties:
  3557. data:
  3558. items:
  3559. $ref: '#/definitions/model.TimeSummaryDataV2'
  3560. type: array
  3561. type: object
  3562. security:
  3563. - ApiKeyAuth: []
  3564. summary: Get model usage data for a specific group
  3565. tags:
  3566. - dashboard
  3567. /api/embedmcp/:
  3568. get:
  3569. consumes:
  3570. - application/json
  3571. description: Get embed mcp
  3572. produces:
  3573. - application/json
  3574. responses:
  3575. "200":
  3576. description: OK
  3577. schema:
  3578. items:
  3579. $ref: '#/definitions/controller.EmbedMCP'
  3580. type: array
  3581. security:
  3582. - ApiKeyAuth: []
  3583. summary: Get embed mcp
  3584. tags:
  3585. - embedmcp
  3586. post:
  3587. consumes:
  3588. - application/json
  3589. description: Save embed mcp
  3590. parameters:
  3591. - description: Save embed mcp request
  3592. in: body
  3593. name: body
  3594. required: true
  3595. schema:
  3596. $ref: '#/definitions/controller.SaveEmbedMCPRequest'
  3597. produces:
  3598. - application/json
  3599. responses:
  3600. "200":
  3601. description: OK
  3602. security:
  3603. - ApiKeyAuth: []
  3604. summary: Save embed mcp
  3605. tags:
  3606. - embedmcp
  3607. /api/group/{group}:
  3608. delete:
  3609. description: Deletes a group by its name
  3610. parameters:
  3611. - description: Group name
  3612. in: path
  3613. name: group
  3614. required: true
  3615. type: string
  3616. produces:
  3617. - application/json
  3618. responses:
  3619. "200":
  3620. description: OK
  3621. schema:
  3622. $ref: '#/definitions/middleware.APIResponse'
  3623. security:
  3624. - ApiKeyAuth: []
  3625. summary: Delete a group
  3626. tags:
  3627. - group
  3628. get:
  3629. description: Returns detailed information about a specific group
  3630. parameters:
  3631. - description: Group name
  3632. in: path
  3633. name: group
  3634. required: true
  3635. type: string
  3636. produces:
  3637. - application/json
  3638. responses:
  3639. "200":
  3640. description: OK
  3641. schema:
  3642. allOf:
  3643. - $ref: '#/definitions/middleware.APIResponse'
  3644. - properties:
  3645. data:
  3646. $ref: '#/definitions/controller.GroupResponse'
  3647. type: object
  3648. security:
  3649. - ApiKeyAuth: []
  3650. summary: Get a group
  3651. tags:
  3652. - group
  3653. post:
  3654. consumes:
  3655. - application/json
  3656. description: Creates a new group with the given information
  3657. parameters:
  3658. - description: Group name
  3659. in: path
  3660. name: group
  3661. required: true
  3662. type: string
  3663. - description: Group information
  3664. in: body
  3665. name: data
  3666. required: true
  3667. schema:
  3668. $ref: '#/definitions/controller.CreateGroupRequest'
  3669. produces:
  3670. - application/json
  3671. responses:
  3672. "200":
  3673. description: OK
  3674. schema:
  3675. allOf:
  3676. - $ref: '#/definitions/middleware.APIResponse'
  3677. - properties:
  3678. data:
  3679. $ref: '#/definitions/model.Group'
  3680. type: object
  3681. security:
  3682. - ApiKeyAuth: []
  3683. summary: Create a new group
  3684. tags:
  3685. - group
  3686. put:
  3687. consumes:
  3688. - application/json
  3689. description: Updates an existing group with the given information
  3690. parameters:
  3691. - description: Group name
  3692. in: path
  3693. name: group
  3694. required: true
  3695. type: string
  3696. - description: Updated group information
  3697. in: body
  3698. name: data
  3699. required: true
  3700. schema:
  3701. $ref: '#/definitions/model.UpdateGroupRequest'
  3702. produces:
  3703. - application/json
  3704. responses:
  3705. "200":
  3706. description: OK
  3707. schema:
  3708. allOf:
  3709. - $ref: '#/definitions/middleware.APIResponse'
  3710. - properties:
  3711. data:
  3712. $ref: '#/definitions/model.Group'
  3713. type: object
  3714. security:
  3715. - ApiKeyAuth: []
  3716. summary: Update a group
  3717. tags:
  3718. - group
  3719. /api/group/{group}/mcp:
  3720. get:
  3721. description: Get MCPs by group
  3722. parameters:
  3723. - description: Group ID
  3724. in: path
  3725. name: group
  3726. required: true
  3727. type: string
  3728. - description: Page
  3729. in: query
  3730. name: page
  3731. type: integer
  3732. - description: Per Page
  3733. in: query
  3734. name: per_page
  3735. type: integer
  3736. - description: MCP ID
  3737. in: query
  3738. name: id
  3739. type: string
  3740. - description: hosted or local
  3741. in: query
  3742. name: type
  3743. type: string
  3744. - description: Keyword
  3745. in: query
  3746. name: keyword
  3747. type: string
  3748. produces:
  3749. - application/json
  3750. responses:
  3751. "200":
  3752. description: OK
  3753. schema:
  3754. allOf:
  3755. - $ref: '#/definitions/middleware.APIResponse'
  3756. - properties:
  3757. data:
  3758. items:
  3759. $ref: '#/definitions/controller.GroupPublicMCPResponse'
  3760. type: array
  3761. type: object
  3762. security:
  3763. - ApiKeyAuth: []
  3764. summary: Get MCPs by group
  3765. tags:
  3766. - mcp
  3767. - group
  3768. /api/group/{group}/mcp/{id}:
  3769. get:
  3770. description: Get a specific MCP by its ID
  3771. parameters:
  3772. - description: Group ID
  3773. in: path
  3774. name: group
  3775. required: true
  3776. type: string
  3777. - description: MCP ID
  3778. in: path
  3779. name: id
  3780. required: true
  3781. type: string
  3782. produces:
  3783. - application/json
  3784. responses:
  3785. "200":
  3786. description: OK
  3787. schema:
  3788. allOf:
  3789. - $ref: '#/definitions/middleware.APIResponse'
  3790. - properties:
  3791. data:
  3792. $ref: '#/definitions/controller.GroupPublicMCPDetailResponse'
  3793. type: object
  3794. security:
  3795. - ApiKeyAuth: []
  3796. summary: Get MCP by ID
  3797. tags:
  3798. - mcp
  3799. - group
  3800. /api/group/{group}/model_config/{model}:
  3801. delete:
  3802. description: Delete group model config
  3803. parameters:
  3804. - description: Group name
  3805. in: path
  3806. name: group
  3807. required: true
  3808. type: string
  3809. - description: Model name
  3810. in: path
  3811. name: model
  3812. required: true
  3813. type: string
  3814. produces:
  3815. - application/json
  3816. responses:
  3817. "200":
  3818. description: OK
  3819. schema:
  3820. $ref: '#/definitions/middleware.APIResponse'
  3821. security:
  3822. - ApiKeyAuth: []
  3823. summary: Delete group model config
  3824. tags:
  3825. - group
  3826. get:
  3827. description: Get group model config
  3828. parameters:
  3829. - description: Group name
  3830. in: path
  3831. name: group
  3832. required: true
  3833. type: string
  3834. - description: Model name
  3835. in: path
  3836. name: model
  3837. required: true
  3838. type: string
  3839. produces:
  3840. - application/json
  3841. responses:
  3842. "200":
  3843. description: OK
  3844. schema:
  3845. allOf:
  3846. - $ref: '#/definitions/middleware.APIResponse'
  3847. - properties:
  3848. data:
  3849. $ref: '#/definitions/model.GroupModelConfig'
  3850. type: object
  3851. security:
  3852. - ApiKeyAuth: []
  3853. summary: Get group model config
  3854. tags:
  3855. - group
  3856. post:
  3857. consumes:
  3858. - application/json
  3859. description: Save group model config
  3860. parameters:
  3861. - description: Group name
  3862. in: path
  3863. name: group
  3864. required: true
  3865. type: string
  3866. - description: Group model config information
  3867. in: body
  3868. name: data
  3869. required: true
  3870. schema:
  3871. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  3872. produces:
  3873. - application/json
  3874. responses:
  3875. "200":
  3876. description: OK
  3877. schema:
  3878. $ref: '#/definitions/middleware.APIResponse'
  3879. security:
  3880. - ApiKeyAuth: []
  3881. summary: Save group model config
  3882. tags:
  3883. - group
  3884. put:
  3885. consumes:
  3886. - application/json
  3887. description: Update group model config
  3888. parameters:
  3889. - description: Group name
  3890. in: path
  3891. name: group
  3892. required: true
  3893. type: string
  3894. - description: Model name
  3895. in: path
  3896. name: model
  3897. required: true
  3898. type: string
  3899. - description: Group model config information
  3900. in: body
  3901. name: data
  3902. required: true
  3903. schema:
  3904. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  3905. produces:
  3906. - application/json
  3907. responses:
  3908. "200":
  3909. description: OK
  3910. schema:
  3911. $ref: '#/definitions/middleware.APIResponse'
  3912. security:
  3913. - ApiKeyAuth: []
  3914. summary: Update group model config
  3915. tags:
  3916. - group
  3917. /api/group/{group}/model_configs/:
  3918. delete:
  3919. description: Delete group model configs
  3920. parameters:
  3921. - description: Group name
  3922. in: path
  3923. name: group
  3924. required: true
  3925. type: string
  3926. - description: Model names
  3927. in: body
  3928. name: models
  3929. required: true
  3930. schema:
  3931. items:
  3932. type: string
  3933. type: array
  3934. produces:
  3935. - application/json
  3936. responses:
  3937. "200":
  3938. description: OK
  3939. schema:
  3940. $ref: '#/definitions/middleware.APIResponse'
  3941. security:
  3942. - ApiKeyAuth: []
  3943. summary: Delete group model configs
  3944. tags:
  3945. - group
  3946. get:
  3947. description: Get group model configs
  3948. parameters:
  3949. - description: Group name
  3950. in: path
  3951. name: group
  3952. required: true
  3953. type: string
  3954. produces:
  3955. - application/json
  3956. responses:
  3957. "200":
  3958. description: OK
  3959. schema:
  3960. allOf:
  3961. - $ref: '#/definitions/middleware.APIResponse'
  3962. - properties:
  3963. data:
  3964. items:
  3965. $ref: '#/definitions/model.GroupModelConfig'
  3966. type: array
  3967. type: object
  3968. security:
  3969. - ApiKeyAuth: []
  3970. summary: Get group model configs
  3971. tags:
  3972. - group
  3973. post:
  3974. consumes:
  3975. - application/json
  3976. description: Save group model configs
  3977. parameters:
  3978. - description: Group name
  3979. in: path
  3980. name: group
  3981. required: true
  3982. type: string
  3983. - description: Group model config information
  3984. in: body
  3985. name: data
  3986. required: true
  3987. schema:
  3988. items:
  3989. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  3990. type: array
  3991. produces:
  3992. - application/json
  3993. responses:
  3994. "200":
  3995. description: OK
  3996. schema:
  3997. $ref: '#/definitions/middleware.APIResponse'
  3998. security:
  3999. - ApiKeyAuth: []
  4000. summary: Save group model configs
  4001. tags:
  4002. - group
  4003. put:
  4004. consumes:
  4005. - application/json
  4006. description: Update group model configs
  4007. parameters:
  4008. - description: Group name
  4009. in: path
  4010. name: group
  4011. required: true
  4012. type: string
  4013. - description: Group model config information
  4014. in: body
  4015. name: data
  4016. required: true
  4017. schema:
  4018. items:
  4019. $ref: '#/definitions/controller.SaveGroupModelConfigRequest'
  4020. type: array
  4021. produces:
  4022. - application/json
  4023. responses:
  4024. "200":
  4025. description: OK
  4026. schema:
  4027. $ref: '#/definitions/middleware.APIResponse'
  4028. security:
  4029. - ApiKeyAuth: []
  4030. summary: Update group model configs
  4031. tags:
  4032. - group
  4033. /api/group/{group}/rpm_ratio:
  4034. post:
  4035. consumes:
  4036. - application/json
  4037. description: Updates the RPM (Requests Per Minute) ratio for a group
  4038. parameters:
  4039. - description: Group name
  4040. in: path
  4041. name: group
  4042. required: true
  4043. type: string
  4044. - description: RPM ratio information
  4045. in: body
  4046. name: data
  4047. required: true
  4048. schema:
  4049. $ref: '#/definitions/controller.UpdateGroupRPMRatioRequest'
  4050. produces:
  4051. - application/json
  4052. responses:
  4053. "200":
  4054. description: OK
  4055. schema:
  4056. $ref: '#/definitions/middleware.APIResponse'
  4057. security:
  4058. - ApiKeyAuth: []
  4059. summary: Update group RPM ratio
  4060. tags:
  4061. - group
  4062. /api/group/{group}/status:
  4063. post:
  4064. consumes:
  4065. - application/json
  4066. description: Updates the status of a group
  4067. parameters:
  4068. - description: Group name
  4069. in: path
  4070. name: group
  4071. required: true
  4072. type: string
  4073. - description: Status information
  4074. in: body
  4075. name: status
  4076. required: true
  4077. schema:
  4078. $ref: '#/definitions/controller.UpdateGroupStatusRequest'
  4079. produces:
  4080. - application/json
  4081. responses:
  4082. "200":
  4083. description: OK
  4084. schema:
  4085. $ref: '#/definitions/middleware.APIResponse'
  4086. security:
  4087. - ApiKeyAuth: []
  4088. summary: Update group status
  4089. tags:
  4090. - group
  4091. /api/group/{group}/tpm_ratio:
  4092. post:
  4093. consumes:
  4094. - application/json
  4095. description: Updates the TPM (Tokens Per Minute) ratio for a group
  4096. parameters:
  4097. - description: Group name
  4098. in: path
  4099. name: group
  4100. required: true
  4101. type: string
  4102. - description: TPM ratio information
  4103. in: body
  4104. name: data
  4105. required: true
  4106. schema:
  4107. $ref: '#/definitions/controller.UpdateGroupTPMRatioRequest'
  4108. produces:
  4109. - application/json
  4110. responses:
  4111. "200":
  4112. description: OK
  4113. schema:
  4114. $ref: '#/definitions/middleware.APIResponse'
  4115. security:
  4116. - ApiKeyAuth: []
  4117. summary: Update group TPM ratio
  4118. tags:
  4119. - group
  4120. /api/groups/:
  4121. get:
  4122. description: Returns a list of all groups with pagination
  4123. parameters:
  4124. - description: Page number
  4125. in: query
  4126. name: page
  4127. type: integer
  4128. - description: Items per page
  4129. in: query
  4130. name: per_page
  4131. type: integer
  4132. produces:
  4133. - application/json
  4134. responses:
  4135. "200":
  4136. description: OK
  4137. schema:
  4138. allOf:
  4139. - $ref: '#/definitions/middleware.APIResponse'
  4140. - properties:
  4141. data:
  4142. additionalProperties:
  4143. allOf:
  4144. - {}
  4145. - properties:
  4146. groups:
  4147. items:
  4148. $ref: '#/definitions/controller.GroupResponse'
  4149. type: array
  4150. total:
  4151. type: integer
  4152. type: object
  4153. type: object
  4154. type: object
  4155. security:
  4156. - ApiKeyAuth: []
  4157. summary: Get all groups
  4158. tags:
  4159. - groups
  4160. /api/groups/batch_delete:
  4161. post:
  4162. consumes:
  4163. - application/json
  4164. description: Deletes multiple groups by their IDs
  4165. parameters:
  4166. - description: Group IDs
  4167. in: body
  4168. name: ids
  4169. required: true
  4170. schema:
  4171. items:
  4172. type: string
  4173. type: array
  4174. produces:
  4175. - application/json
  4176. responses:
  4177. "200":
  4178. description: OK
  4179. schema:
  4180. $ref: '#/definitions/middleware.APIResponse'
  4181. security:
  4182. - ApiKeyAuth: []
  4183. summary: Delete multiple groups
  4184. tags:
  4185. - groups
  4186. /api/groups/batch_status:
  4187. post:
  4188. consumes:
  4189. - application/json
  4190. description: Updates the status of multiple groups
  4191. parameters:
  4192. - description: Group IDs and status
  4193. in: body
  4194. name: data
  4195. required: true
  4196. schema:
  4197. $ref: '#/definitions/controller.UpdateGroupsStatusRequest'
  4198. produces:
  4199. - application/json
  4200. responses:
  4201. "200":
  4202. description: OK
  4203. schema:
  4204. $ref: '#/definitions/middleware.APIResponse'
  4205. security:
  4206. - ApiKeyAuth: []
  4207. summary: Update multiple groups status
  4208. tags:
  4209. - groups
  4210. /api/groups/ip_groups:
  4211. get:
  4212. description: Get IP group list
  4213. parameters:
  4214. - description: Threshold
  4215. in: query
  4216. name: threshold
  4217. type: integer
  4218. - description: Start timestamp
  4219. in: query
  4220. name: start_timestamp
  4221. type: integer
  4222. - description: End timestamp
  4223. in: query
  4224. name: end_timestamp
  4225. type: integer
  4226. produces:
  4227. - application/json
  4228. responses:
  4229. "200":
  4230. description: OK
  4231. schema:
  4232. allOf:
  4233. - $ref: '#/definitions/middleware.APIResponse'
  4234. - properties:
  4235. data:
  4236. additionalProperties:
  4237. items:
  4238. type: string
  4239. type: array
  4240. type: object
  4241. type: object
  4242. security:
  4243. - ApiKeyAuth: []
  4244. summary: Get IP group list
  4245. tags:
  4246. - groups
  4247. /api/groups/search:
  4248. get:
  4249. description: Search groups with keyword and pagination
  4250. parameters:
  4251. - description: Search keyword
  4252. in: query
  4253. name: keyword
  4254. required: true
  4255. type: string
  4256. - description: Page number
  4257. in: query
  4258. name: page
  4259. type: integer
  4260. - description: Items per page
  4261. in: query
  4262. name: per_page
  4263. type: integer
  4264. - description: Status
  4265. in: query
  4266. name: status
  4267. type: integer
  4268. - description: Order
  4269. in: query
  4270. name: order
  4271. type: string
  4272. produces:
  4273. - application/json
  4274. responses:
  4275. "200":
  4276. description: OK
  4277. schema:
  4278. allOf:
  4279. - $ref: '#/definitions/middleware.APIResponse'
  4280. - properties:
  4281. data:
  4282. additionalProperties:
  4283. allOf:
  4284. - {}
  4285. - properties:
  4286. groups:
  4287. items:
  4288. $ref: '#/definitions/controller.GroupResponse'
  4289. type: array
  4290. total:
  4291. type: integer
  4292. type: object
  4293. type: object
  4294. type: object
  4295. security:
  4296. - ApiKeyAuth: []
  4297. summary: Search groups
  4298. tags:
  4299. - groups
  4300. /api/log/{group}:
  4301. get:
  4302. description: Get logs for a specific group
  4303. parameters:
  4304. - description: Group name
  4305. in: path
  4306. name: group
  4307. required: true
  4308. type: string
  4309. - description: Page number
  4310. in: query
  4311. name: page
  4312. type: integer
  4313. - description: Items per page
  4314. in: query
  4315. name: per_page
  4316. type: integer
  4317. - description: Start timestamp (milliseconds)
  4318. in: query
  4319. name: start_timestamp
  4320. type: integer
  4321. - description: End timestamp (milliseconds)
  4322. in: query
  4323. name: end_timestamp
  4324. type: integer
  4325. - description: Token name
  4326. in: query
  4327. name: token_name
  4328. type: string
  4329. - description: Model name
  4330. in: query
  4331. name: model_name
  4332. type: string
  4333. - description: Channel ID
  4334. in: query
  4335. name: channel
  4336. type: integer
  4337. - description: Token ID
  4338. in: query
  4339. name: token_id
  4340. type: integer
  4341. - description: Order
  4342. in: query
  4343. name: order
  4344. type: string
  4345. - description: Request ID
  4346. in: query
  4347. name: request_id
  4348. type: string
  4349. - description: Status code type
  4350. in: query
  4351. name: code_type
  4352. type: string
  4353. - description: Status code
  4354. in: query
  4355. name: code
  4356. type: integer
  4357. - description: With body
  4358. in: query
  4359. name: with_body
  4360. type: boolean
  4361. - description: IP
  4362. in: query
  4363. name: ip
  4364. type: string
  4365. - description: User
  4366. in: query
  4367. name: user
  4368. type: string
  4369. produces:
  4370. - application/json
  4371. responses:
  4372. "200":
  4373. description: OK
  4374. schema:
  4375. allOf:
  4376. - $ref: '#/definitions/middleware.APIResponse'
  4377. - properties:
  4378. data:
  4379. $ref: '#/definitions/model.GetGroupLogsResult'
  4380. type: object
  4381. security:
  4382. - ApiKeyAuth: []
  4383. summary: Get group logs
  4384. tags:
  4385. - log
  4386. /api/log/{group}/detail/{log_id}:
  4387. get:
  4388. description: Get detailed information about a specific log entry in a group
  4389. parameters:
  4390. - description: Group name
  4391. in: path
  4392. name: group
  4393. required: true
  4394. type: string
  4395. - description: Log ID
  4396. in: path
  4397. name: log_id
  4398. required: true
  4399. type: string
  4400. produces:
  4401. - application/json
  4402. responses:
  4403. "200":
  4404. description: OK
  4405. schema:
  4406. allOf:
  4407. - $ref: '#/definitions/middleware.APIResponse'
  4408. - properties:
  4409. data:
  4410. $ref: '#/definitions/model.RequestDetail'
  4411. type: object
  4412. security:
  4413. - ApiKeyAuth: []
  4414. summary: Get group log detail
  4415. tags:
  4416. - log
  4417. /api/log/{group}/search:
  4418. get:
  4419. description: Search logs for a specific group with filters
  4420. parameters:
  4421. - description: Group name
  4422. in: path
  4423. name: group
  4424. required: true
  4425. type: string
  4426. - description: Keyword
  4427. in: query
  4428. name: keyword
  4429. type: string
  4430. - description: Page number
  4431. in: query
  4432. name: page
  4433. type: integer
  4434. - description: Items per page
  4435. in: query
  4436. name: per_page
  4437. type: integer
  4438. - description: Start timestamp (milliseconds)
  4439. in: query
  4440. name: start_timestamp
  4441. type: integer
  4442. - description: End timestamp (milliseconds)
  4443. in: query
  4444. name: end_timestamp
  4445. type: integer
  4446. - description: Filter by token name
  4447. in: query
  4448. name: token_name
  4449. type: string
  4450. - description: Filter by model name
  4451. in: query
  4452. name: model_name
  4453. type: string
  4454. - description: Filter by token id
  4455. in: query
  4456. name: token_id
  4457. type: integer
  4458. - description: Order
  4459. in: query
  4460. name: order
  4461. type: string
  4462. - description: Request ID
  4463. in: query
  4464. name: request_id
  4465. type: string
  4466. - description: Status code type
  4467. in: query
  4468. name: code_type
  4469. type: string
  4470. - description: Status code
  4471. in: query
  4472. name: code
  4473. type: integer
  4474. - description: With body
  4475. in: query
  4476. name: with_body
  4477. type: boolean
  4478. - description: IP
  4479. in: query
  4480. name: ip
  4481. type: string
  4482. - description: User
  4483. in: query
  4484. name: user
  4485. type: string
  4486. produces:
  4487. - application/json
  4488. responses:
  4489. "200":
  4490. description: OK
  4491. schema:
  4492. allOf:
  4493. - $ref: '#/definitions/middleware.APIResponse'
  4494. - properties:
  4495. data:
  4496. $ref: '#/definitions/model.GetGroupLogsResult'
  4497. type: object
  4498. security:
  4499. - ApiKeyAuth: []
  4500. summary: Search group logs
  4501. tags:
  4502. - log
  4503. /api/logs/:
  4504. delete:
  4505. description: Deletes logs older than the specified retention period
  4506. parameters:
  4507. - description: Timestamp (milliseconds)
  4508. in: query
  4509. name: timestamp
  4510. required: true
  4511. type: integer
  4512. produces:
  4513. - application/json
  4514. responses:
  4515. "200":
  4516. description: OK
  4517. schema:
  4518. allOf:
  4519. - $ref: '#/definitions/middleware.APIResponse'
  4520. - properties:
  4521. data:
  4522. type: integer
  4523. type: object
  4524. security:
  4525. - ApiKeyAuth: []
  4526. summary: Delete historical logs
  4527. tags:
  4528. - logs
  4529. get:
  4530. description: Returns a paginated list of all logs with optional filters
  4531. parameters:
  4532. - description: Page number
  4533. in: query
  4534. name: page
  4535. type: integer
  4536. - description: Items per page
  4537. in: query
  4538. name: per_page
  4539. type: integer
  4540. - description: Start timestamp (milliseconds)
  4541. in: query
  4542. name: start_timestamp
  4543. type: integer
  4544. - description: End timestamp (milliseconds)
  4545. in: query
  4546. name: end_timestamp
  4547. type: integer
  4548. - description: Model name
  4549. in: query
  4550. name: model_name
  4551. type: string
  4552. - description: Channel ID
  4553. in: query
  4554. name: channel
  4555. type: integer
  4556. - description: Order
  4557. in: query
  4558. name: order
  4559. type: string
  4560. - description: Request ID
  4561. in: query
  4562. name: request_id
  4563. type: string
  4564. - description: Status code type
  4565. in: query
  4566. name: code_type
  4567. type: string
  4568. - description: Status code
  4569. in: query
  4570. name: code
  4571. type: integer
  4572. - description: With body
  4573. in: query
  4574. name: with_body
  4575. type: boolean
  4576. - description: IP
  4577. in: query
  4578. name: ip
  4579. type: string
  4580. - description: User
  4581. in: query
  4582. name: user
  4583. type: string
  4584. produces:
  4585. - application/json
  4586. responses:
  4587. "200":
  4588. description: OK
  4589. schema:
  4590. allOf:
  4591. - $ref: '#/definitions/middleware.APIResponse'
  4592. - properties:
  4593. data:
  4594. $ref: '#/definitions/model.GetLogsResult'
  4595. type: object
  4596. security:
  4597. - ApiKeyAuth: []
  4598. summary: Get all logs
  4599. tags:
  4600. - logs
  4601. /api/logs/consume_error:
  4602. get:
  4603. description: Search for logs with consumption errors
  4604. parameters:
  4605. - description: Page number
  4606. in: query
  4607. name: page
  4608. type: integer
  4609. - description: Items per page
  4610. in: query
  4611. name: per_page
  4612. type: integer
  4613. - description: Start timestamp (milliseconds)
  4614. in: query
  4615. name: start_timestamp
  4616. type: integer
  4617. - description: End timestamp (milliseconds)
  4618. in: query
  4619. name: end_timestamp
  4620. type: integer
  4621. - description: Keyword
  4622. in: query
  4623. name: keyword
  4624. type: string
  4625. - description: Group
  4626. in: query
  4627. name: group
  4628. type: string
  4629. - description: Token name
  4630. in: query
  4631. name: token_name
  4632. type: string
  4633. - description: Model name
  4634. in: query
  4635. name: model_name
  4636. type: string
  4637. - description: Content
  4638. in: query
  4639. name: content
  4640. type: string
  4641. - description: Token ID
  4642. in: query
  4643. name: token_id
  4644. type: integer
  4645. - description: Order
  4646. in: query
  4647. name: order
  4648. type: string
  4649. - description: Request ID
  4650. in: query
  4651. name: request_id
  4652. type: string
  4653. produces:
  4654. - application/json
  4655. responses:
  4656. "200":
  4657. description: OK
  4658. schema:
  4659. allOf:
  4660. - $ref: '#/definitions/middleware.APIResponse'
  4661. - properties:
  4662. data:
  4663. additionalProperties:
  4664. allOf:
  4665. - {}
  4666. - properties:
  4667. logs:
  4668. items:
  4669. $ref: '#/definitions/model.RequestDetail'
  4670. type: array
  4671. total:
  4672. type: integer
  4673. type: object
  4674. type: object
  4675. type: object
  4676. security:
  4677. - ApiKeyAuth: []
  4678. summary: Search consumption errors
  4679. tags:
  4680. - logs
  4681. /api/logs/detail/{log_id}:
  4682. get:
  4683. description: Get detailed information about a specific log entry
  4684. parameters:
  4685. - description: Log ID
  4686. in: path
  4687. name: log_id
  4688. required: true
  4689. type: string
  4690. produces:
  4691. - application/json
  4692. responses:
  4693. "200":
  4694. description: OK
  4695. schema:
  4696. allOf:
  4697. - $ref: '#/definitions/middleware.APIResponse'
  4698. - properties:
  4699. data:
  4700. $ref: '#/definitions/model.RequestDetail'
  4701. type: object
  4702. security:
  4703. - ApiKeyAuth: []
  4704. summary: Get log detail
  4705. tags:
  4706. - logs
  4707. /api/logs/search:
  4708. get:
  4709. description: Search logs with various filters
  4710. parameters:
  4711. - description: Keyword
  4712. in: query
  4713. name: keyword
  4714. type: string
  4715. - description: Page number
  4716. in: query
  4717. name: page
  4718. type: integer
  4719. - description: Items per page
  4720. in: query
  4721. name: per_page
  4722. type: integer
  4723. - description: Start timestamp (milliseconds)
  4724. in: query
  4725. name: start_timestamp
  4726. type: integer
  4727. - description: End timestamp (milliseconds)
  4728. in: query
  4729. name: end_timestamp
  4730. type: integer
  4731. - description: Filter by model name
  4732. in: query
  4733. name: model_name
  4734. type: string
  4735. - description: Filter by channel
  4736. in: query
  4737. name: channel
  4738. type: integer
  4739. - description: Group name
  4740. in: query
  4741. name: group
  4742. required: true
  4743. type: string
  4744. - description: Filter by token id
  4745. in: query
  4746. name: token_id
  4747. type: integer
  4748. - description: Filter by token name
  4749. in: query
  4750. name: token_name
  4751. type: string
  4752. - description: Order
  4753. in: query
  4754. name: order
  4755. type: string
  4756. - description: Request ID
  4757. in: query
  4758. name: request_id
  4759. type: string
  4760. - description: Status code type
  4761. in: query
  4762. name: code_type
  4763. type: string
  4764. - description: Status code
  4765. in: query
  4766. name: code
  4767. type: integer
  4768. - description: With body
  4769. in: query
  4770. name: with_body
  4771. type: boolean
  4772. - description: IP
  4773. in: query
  4774. name: ip
  4775. type: string
  4776. - description: User
  4777. in: query
  4778. name: user
  4779. type: string
  4780. produces:
  4781. - application/json
  4782. responses:
  4783. "200":
  4784. description: OK
  4785. schema:
  4786. allOf:
  4787. - $ref: '#/definitions/middleware.APIResponse'
  4788. - properties:
  4789. data:
  4790. $ref: '#/definitions/model.GetLogsResult'
  4791. type: object
  4792. security:
  4793. - ApiKeyAuth: []
  4794. summary: Search logs
  4795. tags:
  4796. - logs
  4797. /api/mcp/group/{group}:
  4798. get:
  4799. description: Get a list of Group MCPs with pagination and filtering
  4800. parameters:
  4801. - description: Group ID
  4802. in: path
  4803. name: group
  4804. required: true
  4805. type: string
  4806. - description: Page number
  4807. in: query
  4808. name: page
  4809. type: integer
  4810. - description: Items per page
  4811. in: query
  4812. name: per_page
  4813. type: integer
  4814. - description: MCP id
  4815. in: query
  4816. name: id
  4817. type: string
  4818. - description: MCP type, mcp_proxy_sse, mcp_proxy_streamable, mcp_openapi
  4819. in: query
  4820. name: type
  4821. type: string
  4822. - description: Search keyword
  4823. in: query
  4824. name: keyword
  4825. type: string
  4826. - description: MCP status
  4827. in: query
  4828. name: status
  4829. type: integer
  4830. produces:
  4831. - application/json
  4832. responses:
  4833. "200":
  4834. description: OK
  4835. schema:
  4836. allOf:
  4837. - $ref: '#/definitions/middleware.APIResponse'
  4838. - properties:
  4839. data:
  4840. items:
  4841. $ref: '#/definitions/controller.GroupMCPResponse'
  4842. type: array
  4843. type: object
  4844. security:
  4845. - ApiKeyAuth: []
  4846. summary: Get Group MCPs
  4847. tags:
  4848. - mcp
  4849. post:
  4850. consumes:
  4851. - application/json
  4852. description: Create a new Group MCP
  4853. parameters:
  4854. - description: Group ID
  4855. in: path
  4856. name: group
  4857. required: true
  4858. type: string
  4859. - description: Group MCP object
  4860. in: body
  4861. name: mcp
  4862. required: true
  4863. schema:
  4864. $ref: '#/definitions/model.GroupMCP'
  4865. produces:
  4866. - application/json
  4867. responses:
  4868. "200":
  4869. description: OK
  4870. schema:
  4871. allOf:
  4872. - $ref: '#/definitions/middleware.APIResponse'
  4873. - properties:
  4874. data:
  4875. $ref: '#/definitions/controller.GroupMCPResponse'
  4876. type: object
  4877. security:
  4878. - ApiKeyAuth: []
  4879. summary: Create Group MCP
  4880. tags:
  4881. - mcp
  4882. /api/mcp/group/{group}/{id}:
  4883. delete:
  4884. description: Delete a Group MCP by ID and Group ID
  4885. parameters:
  4886. - description: MCP ID
  4887. in: path
  4888. name: id
  4889. required: true
  4890. type: string
  4891. - description: Group ID
  4892. in: path
  4893. name: group
  4894. required: true
  4895. type: string
  4896. produces:
  4897. - application/json
  4898. responses:
  4899. "200":
  4900. description: OK
  4901. schema:
  4902. $ref: '#/definitions/middleware.APIResponse'
  4903. security:
  4904. - ApiKeyAuth: []
  4905. summary: Delete Group MCP
  4906. tags:
  4907. - mcp
  4908. get:
  4909. description: Get a specific Group MCP by its ID and Group ID
  4910. parameters:
  4911. - description: MCP ID
  4912. in: path
  4913. name: id
  4914. required: true
  4915. type: string
  4916. - description: Group ID
  4917. in: path
  4918. name: group
  4919. required: true
  4920. type: string
  4921. produces:
  4922. - application/json
  4923. responses:
  4924. "200":
  4925. description: OK
  4926. schema:
  4927. allOf:
  4928. - $ref: '#/definitions/middleware.APIResponse'
  4929. - properties:
  4930. data:
  4931. $ref: '#/definitions/controller.GroupMCPResponse'
  4932. type: object
  4933. security:
  4934. - ApiKeyAuth: []
  4935. summary: Get Group MCP by ID
  4936. tags:
  4937. - mcp
  4938. put:
  4939. consumes:
  4940. - application/json
  4941. description: Update an existing Group MCP
  4942. parameters:
  4943. - description: MCP ID
  4944. in: path
  4945. name: id
  4946. required: true
  4947. type: string
  4948. - description: Group ID
  4949. in: path
  4950. name: group
  4951. required: true
  4952. type: string
  4953. - description: Group MCP object
  4954. in: body
  4955. name: mcp
  4956. required: true
  4957. schema:
  4958. $ref: '#/definitions/model.GroupMCP'
  4959. produces:
  4960. - application/json
  4961. responses:
  4962. "200":
  4963. description: OK
  4964. schema:
  4965. allOf:
  4966. - $ref: '#/definitions/middleware.APIResponse'
  4967. - properties:
  4968. data:
  4969. $ref: '#/definitions/controller.GroupMCPResponse'
  4970. type: object
  4971. security:
  4972. - ApiKeyAuth: []
  4973. summary: Update Group MCP
  4974. tags:
  4975. - mcp
  4976. /api/mcp/group/{group}/{id}/status:
  4977. post:
  4978. consumes:
  4979. - application/json
  4980. description: Update the status of a Group MCP
  4981. parameters:
  4982. - description: MCP ID
  4983. in: path
  4984. name: id
  4985. required: true
  4986. type: string
  4987. - description: Group ID
  4988. in: path
  4989. name: group
  4990. required: true
  4991. type: string
  4992. - description: MCP status
  4993. in: body
  4994. name: status
  4995. required: true
  4996. schema:
  4997. $ref: '#/definitions/controller.UpdateGroupMCPStatusRequest'
  4998. produces:
  4999. - application/json
  5000. responses:
  5001. "200":
  5002. description: OK
  5003. schema:
  5004. $ref: '#/definitions/middleware.APIResponse'
  5005. security:
  5006. - ApiKeyAuth: []
  5007. summary: Update Group MCP status
  5008. tags:
  5009. - mcp
  5010. /api/mcp/group/all:
  5011. get:
  5012. description: Get all Group MCPs with filtering
  5013. parameters:
  5014. - description: MCP status
  5015. in: query
  5016. name: status
  5017. type: integer
  5018. produces:
  5019. - application/json
  5020. responses:
  5021. "200":
  5022. description: OK
  5023. schema:
  5024. allOf:
  5025. - $ref: '#/definitions/middleware.APIResponse'
  5026. - properties:
  5027. data:
  5028. items:
  5029. $ref: '#/definitions/controller.GroupMCPResponse'
  5030. type: array
  5031. type: object
  5032. security:
  5033. - ApiKeyAuth: []
  5034. summary: Get all Group MCPs
  5035. tags:
  5036. - mcp
  5037. /api/mcp/public/:
  5038. post:
  5039. consumes:
  5040. - application/json
  5041. description: Create a new MCP
  5042. parameters:
  5043. - description: MCP object
  5044. in: body
  5045. name: mcp
  5046. required: true
  5047. schema:
  5048. $ref: '#/definitions/model.PublicMCP'
  5049. produces:
  5050. - application/json
  5051. responses:
  5052. "200":
  5053. description: OK
  5054. schema:
  5055. allOf:
  5056. - $ref: '#/definitions/middleware.APIResponse'
  5057. - properties:
  5058. data:
  5059. $ref: '#/definitions/controller.PublicMCPResponse'
  5060. type: object
  5061. security:
  5062. - ApiKeyAuth: []
  5063. summary: Create MCP
  5064. tags:
  5065. - mcp
  5066. /api/mcp/public/{id}:
  5067. delete:
  5068. description: Delete an MCP by ID
  5069. parameters:
  5070. - description: MCP ID
  5071. in: path
  5072. name: id
  5073. required: true
  5074. type: string
  5075. produces:
  5076. - application/json
  5077. responses:
  5078. "200":
  5079. description: OK
  5080. schema:
  5081. $ref: '#/definitions/middleware.APIResponse'
  5082. security:
  5083. - ApiKeyAuth: []
  5084. summary: Delete MCP
  5085. tags:
  5086. - mcp
  5087. get:
  5088. description: Get a specific MCP by its ID
  5089. parameters:
  5090. - description: MCP ID
  5091. in: path
  5092. name: id
  5093. required: true
  5094. type: string
  5095. produces:
  5096. - application/json
  5097. responses:
  5098. "200":
  5099. description: OK
  5100. schema:
  5101. allOf:
  5102. - $ref: '#/definitions/middleware.APIResponse'
  5103. - properties:
  5104. data:
  5105. $ref: '#/definitions/controller.PublicMCPResponse'
  5106. type: object
  5107. security:
  5108. - ApiKeyAuth: []
  5109. summary: Get MCP by ID
  5110. tags:
  5111. - mcp
  5112. post:
  5113. consumes:
  5114. - application/json
  5115. description: Update an existing MCP
  5116. parameters:
  5117. - description: MCP ID
  5118. in: path
  5119. name: id
  5120. required: true
  5121. type: string
  5122. - description: MCP object
  5123. in: body
  5124. name: mcp
  5125. required: true
  5126. schema:
  5127. $ref: '#/definitions/model.PublicMCP'
  5128. produces:
  5129. - application/json
  5130. responses:
  5131. "200":
  5132. description: OK
  5133. schema:
  5134. allOf:
  5135. - $ref: '#/definitions/middleware.APIResponse'
  5136. - properties:
  5137. data:
  5138. $ref: '#/definitions/controller.PublicMCPResponse'
  5139. type: object
  5140. security:
  5141. - ApiKeyAuth: []
  5142. summary: Update MCP
  5143. tags:
  5144. - mcp
  5145. put:
  5146. consumes:
  5147. - application/json
  5148. description: Save a MCP
  5149. parameters:
  5150. - description: MCP ID
  5151. in: path
  5152. name: id
  5153. required: true
  5154. type: string
  5155. - description: MCP object
  5156. in: body
  5157. name: mcp
  5158. required: true
  5159. schema:
  5160. $ref: '#/definitions/model.PublicMCP'
  5161. produces:
  5162. - application/json
  5163. responses:
  5164. "200":
  5165. description: OK
  5166. schema:
  5167. allOf:
  5168. - $ref: '#/definitions/middleware.APIResponse'
  5169. - properties:
  5170. data:
  5171. $ref: '#/definitions/controller.PublicMCPResponse'
  5172. type: object
  5173. security:
  5174. - ApiKeyAuth: []
  5175. summary: Save MCP
  5176. tags:
  5177. - mcp
  5178. /api/mcp/public/{id}/group/{group}/params:
  5179. get:
  5180. description: Get reusing parameters for a specific group and MCP
  5181. parameters:
  5182. - description: MCP ID
  5183. in: path
  5184. name: id
  5185. required: true
  5186. type: string
  5187. - description: Group ID
  5188. in: path
  5189. name: group
  5190. required: true
  5191. type: string
  5192. produces:
  5193. - application/json
  5194. responses:
  5195. "200":
  5196. description: OK
  5197. schema:
  5198. allOf:
  5199. - $ref: '#/definitions/middleware.APIResponse'
  5200. - properties:
  5201. data:
  5202. $ref: '#/definitions/model.PublicMCPReusingParam'
  5203. type: object
  5204. security:
  5205. - ApiKeyAuth: []
  5206. summary: Get group MCP reusing parameters
  5207. tags:
  5208. - mcp
  5209. post:
  5210. consumes:
  5211. - application/json
  5212. description: Create or update reusing parameters for a specific group and MCP
  5213. parameters:
  5214. - description: MCP ID
  5215. in: path
  5216. name: id
  5217. required: true
  5218. type: string
  5219. - description: Group ID
  5220. in: path
  5221. name: group
  5222. required: true
  5223. type: string
  5224. - description: Reusing parameters
  5225. in: body
  5226. name: params
  5227. required: true
  5228. schema:
  5229. $ref: '#/definitions/model.PublicMCPReusingParam'
  5230. produces:
  5231. - application/json
  5232. responses:
  5233. "200":
  5234. description: OK
  5235. schema:
  5236. $ref: '#/definitions/middleware.APIResponse'
  5237. security:
  5238. - ApiKeyAuth: []
  5239. summary: Create or update group MCP reusing parameters
  5240. tags:
  5241. - mcp
  5242. /api/mcp/public/{id}/status:
  5243. post:
  5244. consumes:
  5245. - application/json
  5246. description: Update the status of an MCP
  5247. parameters:
  5248. - description: MCP ID
  5249. in: path
  5250. name: id
  5251. required: true
  5252. type: string
  5253. - description: MCP status
  5254. in: body
  5255. name: status
  5256. required: true
  5257. schema:
  5258. $ref: '#/definitions/controller.UpdatePublicMCPStatusRequest'
  5259. produces:
  5260. - application/json
  5261. responses:
  5262. "200":
  5263. description: OK
  5264. schema:
  5265. $ref: '#/definitions/middleware.APIResponse'
  5266. security:
  5267. - ApiKeyAuth: []
  5268. summary: Update MCP status
  5269. tags:
  5270. - mcp
  5271. /api/mcp/publics/:
  5272. get:
  5273. description: Get a list of MCPs with pagination and filtering
  5274. parameters:
  5275. - description: Page number
  5276. in: query
  5277. name: page
  5278. type: integer
  5279. - description: Items per page
  5280. in: query
  5281. name: per_page
  5282. type: integer
  5283. - description: hosted or local
  5284. in: query
  5285. name: type
  5286. type: string
  5287. - description: MCP id
  5288. in: query
  5289. name: id
  5290. type: string
  5291. - description: Search keyword
  5292. in: query
  5293. name: keyword
  5294. type: string
  5295. - description: MCP status
  5296. in: query
  5297. name: status
  5298. type: integer
  5299. produces:
  5300. - application/json
  5301. responses:
  5302. "200":
  5303. description: OK
  5304. schema:
  5305. allOf:
  5306. - $ref: '#/definitions/middleware.APIResponse'
  5307. - properties:
  5308. data:
  5309. items:
  5310. $ref: '#/definitions/controller.PublicMCPResponse'
  5311. type: array
  5312. type: object
  5313. security:
  5314. - ApiKeyAuth: []
  5315. summary: Get MCPs
  5316. tags:
  5317. - mcp
  5318. post:
  5319. consumes:
  5320. - application/json
  5321. description: Save a list of MCPs
  5322. parameters:
  5323. - description: MCP object
  5324. in: body
  5325. name: mcp
  5326. required: true
  5327. schema:
  5328. items:
  5329. $ref: '#/definitions/model.PublicMCP'
  5330. type: array
  5331. produces:
  5332. - application/json
  5333. responses:
  5334. "200":
  5335. description: OK
  5336. schema:
  5337. $ref: '#/definitions/middleware.APIResponse'
  5338. security:
  5339. - ApiKeyAuth: []
  5340. summary: Save MCPs
  5341. tags:
  5342. - mcp
  5343. /api/mcp/publics/all:
  5344. get:
  5345. description: Get all MCPs with filtering
  5346. parameters:
  5347. - description: MCP status
  5348. in: query
  5349. name: status
  5350. type: integer
  5351. produces:
  5352. - application/json
  5353. responses:
  5354. "200":
  5355. description: OK
  5356. schema:
  5357. allOf:
  5358. - $ref: '#/definitions/middleware.APIResponse'
  5359. - properties:
  5360. data:
  5361. items:
  5362. $ref: '#/definitions/controller.PublicMCPResponse'
  5363. type: array
  5364. type: object
  5365. security:
  5366. - ApiKeyAuth: []
  5367. summary: Get all MCPs
  5368. tags:
  5369. - mcp
  5370. /api/model_config/{model}:
  5371. delete:
  5372. description: Deletes a model config
  5373. parameters:
  5374. - description: Model name
  5375. in: path
  5376. name: model
  5377. required: true
  5378. type: string
  5379. produces:
  5380. - application/json
  5381. responses:
  5382. "200":
  5383. description: OK
  5384. schema:
  5385. $ref: '#/definitions/middleware.APIResponse'
  5386. security:
  5387. - ApiKeyAuth: []
  5388. summary: Delete model config
  5389. tags:
  5390. - modelconfig
  5391. get:
  5392. description: Returns a model config
  5393. parameters:
  5394. - description: Model name
  5395. in: path
  5396. name: model
  5397. required: true
  5398. type: string
  5399. produces:
  5400. - application/json
  5401. responses:
  5402. "200":
  5403. description: OK
  5404. schema:
  5405. allOf:
  5406. - $ref: '#/definitions/middleware.APIResponse'
  5407. - properties:
  5408. data:
  5409. $ref: '#/definitions/model.ModelConfig'
  5410. type: object
  5411. security:
  5412. - ApiKeyAuth: []
  5413. summary: Get model config
  5414. tags:
  5415. - modelconfig
  5416. post:
  5417. description: Saves a model config
  5418. parameters:
  5419. - description: Model config
  5420. in: body
  5421. name: config
  5422. required: true
  5423. schema:
  5424. $ref: '#/definitions/controller.SaveModelConfigsRequest'
  5425. produces:
  5426. - application/json
  5427. responses:
  5428. "200":
  5429. description: OK
  5430. schema:
  5431. $ref: '#/definitions/middleware.APIResponse'
  5432. security:
  5433. - ApiKeyAuth: []
  5434. summary: Save model config
  5435. tags:
  5436. - modelconfig
  5437. /api/model_configs/:
  5438. get:
  5439. description: Returns a list of model configs with pagination
  5440. parameters:
  5441. - description: Model name
  5442. in: query
  5443. name: model
  5444. type: string
  5445. produces:
  5446. - application/json
  5447. responses:
  5448. "200":
  5449. description: OK
  5450. schema:
  5451. allOf:
  5452. - $ref: '#/definitions/middleware.APIResponse'
  5453. - properties:
  5454. data:
  5455. additionalProperties:
  5456. allOf:
  5457. - {}
  5458. - properties:
  5459. configs:
  5460. items:
  5461. $ref: '#/definitions/model.ModelConfig'
  5462. type: array
  5463. total:
  5464. type: integer
  5465. type: object
  5466. type: object
  5467. type: object
  5468. security:
  5469. - ApiKeyAuth: []
  5470. summary: Get model configs
  5471. tags:
  5472. - modelconfig
  5473. post:
  5474. description: Saves a list of model configs
  5475. parameters:
  5476. - description: Model configs
  5477. in: body
  5478. name: configs
  5479. required: true
  5480. schema:
  5481. items:
  5482. $ref: '#/definitions/controller.SaveModelConfigsRequest'
  5483. type: array
  5484. produces:
  5485. - application/json
  5486. responses:
  5487. "200":
  5488. description: OK
  5489. schema:
  5490. $ref: '#/definitions/middleware.APIResponse'
  5491. security:
  5492. - ApiKeyAuth: []
  5493. summary: Save model configs
  5494. tags:
  5495. - modelconfig
  5496. /api/model_configs/all:
  5497. get:
  5498. description: Returns a list of all model configs
  5499. produces:
  5500. - application/json
  5501. responses:
  5502. "200":
  5503. description: OK
  5504. schema:
  5505. allOf:
  5506. - $ref: '#/definitions/middleware.APIResponse'
  5507. - properties:
  5508. data:
  5509. items:
  5510. $ref: '#/definitions/model.ModelConfig'
  5511. type: array
  5512. type: object
  5513. security:
  5514. - ApiKeyAuth: []
  5515. summary: Get all model configs
  5516. tags:
  5517. - modelconfig
  5518. /api/model_configs/batch_delete:
  5519. post:
  5520. description: Deletes a list of model configs
  5521. parameters:
  5522. - description: Model names
  5523. in: body
  5524. name: models
  5525. required: true
  5526. schema:
  5527. items:
  5528. type: string
  5529. type: array
  5530. produces:
  5531. - application/json
  5532. responses:
  5533. "200":
  5534. description: OK
  5535. schema:
  5536. $ref: '#/definitions/middleware.APIResponse'
  5537. security:
  5538. - ApiKeyAuth: []
  5539. summary: Delete model configs
  5540. tags:
  5541. - modelconfig
  5542. /api/model_configs/contains:
  5543. post:
  5544. description: Returns a list of model configs by models contains
  5545. parameters:
  5546. - description: Models
  5547. in: body
  5548. name: models
  5549. required: true
  5550. schema:
  5551. $ref: '#/definitions/controller.GetModelConfigsByModelsContainsRequest'
  5552. produces:
  5553. - application/json
  5554. responses:
  5555. "200":
  5556. description: OK
  5557. schema:
  5558. allOf:
  5559. - $ref: '#/definitions/middleware.APIResponse'
  5560. - properties:
  5561. data:
  5562. items:
  5563. $ref: '#/definitions/model.ModelConfig'
  5564. type: array
  5565. type: object
  5566. security:
  5567. - ApiKeyAuth: []
  5568. summary: Get model configs by models contains
  5569. tags:
  5570. - modelconfig
  5571. /api/model_configs/search:
  5572. get:
  5573. description: Returns a list of model configs by keyword
  5574. parameters:
  5575. - description: Keyword
  5576. in: query
  5577. name: keyword
  5578. type: string
  5579. - description: Model name
  5580. in: query
  5581. name: model
  5582. type: string
  5583. - description: Owner
  5584. in: query
  5585. name: owner
  5586. type: string
  5587. - description: Page
  5588. in: query
  5589. name: page
  5590. type: integer
  5591. - description: Per page
  5592. in: query
  5593. name: per_page
  5594. type: integer
  5595. produces:
  5596. - application/json
  5597. responses:
  5598. "200":
  5599. description: OK
  5600. schema:
  5601. allOf:
  5602. - $ref: '#/definitions/middleware.APIResponse'
  5603. - properties:
  5604. data:
  5605. additionalProperties:
  5606. allOf:
  5607. - {}
  5608. - properties:
  5609. configs:
  5610. items:
  5611. $ref: '#/definitions/model.ModelConfig'
  5612. type: array
  5613. total:
  5614. type: integer
  5615. type: object
  5616. type: object
  5617. type: object
  5618. security:
  5619. - ApiKeyAuth: []
  5620. summary: Search model configs
  5621. tags:
  5622. - modelconfig
  5623. /api/models/builtin:
  5624. get:
  5625. description: Returns a list of builtin models
  5626. produces:
  5627. - application/json
  5628. responses:
  5629. "200":
  5630. description: OK
  5631. schema:
  5632. allOf:
  5633. - $ref: '#/definitions/middleware.APIResponse'
  5634. - properties:
  5635. data:
  5636. items:
  5637. $ref: '#/definitions/controller.BuiltinModelConfig'
  5638. type: array
  5639. type: object
  5640. security:
  5641. - ApiKeyAuth: []
  5642. summary: Get builtin models
  5643. tags:
  5644. - model
  5645. /api/models/builtin/channel:
  5646. get:
  5647. description: Returns a list of channel builtin models
  5648. produces:
  5649. - application/json
  5650. responses:
  5651. "200":
  5652. description: OK
  5653. schema:
  5654. allOf:
  5655. - $ref: '#/definitions/middleware.APIResponse'
  5656. - properties:
  5657. data:
  5658. additionalProperties:
  5659. items:
  5660. $ref: '#/definitions/controller.BuiltinModelConfig'
  5661. type: array
  5662. type: object
  5663. type: object
  5664. security:
  5665. - ApiKeyAuth: []
  5666. summary: Get channel builtin models
  5667. tags:
  5668. - model
  5669. /api/models/builtin/channel/{type}:
  5670. get:
  5671. description: Returns a list of channel builtin models by type
  5672. parameters:
  5673. - description: Channel type
  5674. enum:
  5675. - 1
  5676. - 3
  5677. - 4
  5678. - 12
  5679. - 13
  5680. - 14
  5681. - 15
  5682. - 16
  5683. - 17
  5684. - 18
  5685. - 19
  5686. - 20
  5687. - 23
  5688. - 24
  5689. - 25
  5690. - 26
  5691. - 27
  5692. - 28
  5693. - 29
  5694. - 30
  5695. - 31
  5696. - 32
  5697. - 33
  5698. - 34
  5699. - 35
  5700. - 36
  5701. - 37
  5702. - 40
  5703. - 41
  5704. - 42
  5705. - 43
  5706. - 44
  5707. - 45
  5708. - 46
  5709. - 47
  5710. - 48
  5711. - 49
  5712. - 50
  5713. - 51
  5714. - 52
  5715. in: path
  5716. name: type
  5717. required: true
  5718. type: integer
  5719. produces:
  5720. - application/json
  5721. responses:
  5722. "200":
  5723. description: OK
  5724. schema:
  5725. allOf:
  5726. - $ref: '#/definitions/middleware.APIResponse'
  5727. - properties:
  5728. data:
  5729. items:
  5730. $ref: '#/definitions/controller.BuiltinModelConfig'
  5731. type: array
  5732. type: object
  5733. security:
  5734. - ApiKeyAuth: []
  5735. summary: Get channel builtin models by type
  5736. tags:
  5737. - model
  5738. /api/models/default:
  5739. get:
  5740. description: Returns a list of channel default models and mapping
  5741. produces:
  5742. - application/json
  5743. responses:
  5744. "200":
  5745. description: OK
  5746. schema:
  5747. allOf:
  5748. - $ref: '#/definitions/middleware.APIResponse'
  5749. - properties:
  5750. data:
  5751. additionalProperties:
  5752. allOf:
  5753. - {}
  5754. - properties:
  5755. mapping:
  5756. additionalProperties:
  5757. type: string
  5758. type: object
  5759. models:
  5760. items:
  5761. type: string
  5762. type: array
  5763. type: object
  5764. type: object
  5765. type: object
  5766. security:
  5767. - ApiKeyAuth: []
  5768. summary: Get channel default models and mapping
  5769. tags:
  5770. - model
  5771. /api/models/default/{type}:
  5772. get:
  5773. description: Returns a list of channel default models and mapping by type
  5774. parameters:
  5775. - description: Channel type
  5776. in: path
  5777. name: type
  5778. required: true
  5779. type: string
  5780. produces:
  5781. - application/json
  5782. responses:
  5783. "200":
  5784. description: OK
  5785. schema:
  5786. allOf:
  5787. - $ref: '#/definitions/middleware.APIResponse'
  5788. - properties:
  5789. data:
  5790. additionalProperties:
  5791. allOf:
  5792. - {}
  5793. - properties:
  5794. mapping:
  5795. additionalProperties:
  5796. type: string
  5797. type: object
  5798. models:
  5799. items:
  5800. type: string
  5801. type: array
  5802. type: object
  5803. type: object
  5804. type: object
  5805. security:
  5806. - ApiKeyAuth: []
  5807. summary: Get channel default models and mapping by type
  5808. tags:
  5809. - model
  5810. /api/models/enabled:
  5811. get:
  5812. description: Returns a list of enabled models
  5813. produces:
  5814. - application/json
  5815. responses:
  5816. "200":
  5817. description: OK
  5818. schema:
  5819. allOf:
  5820. - $ref: '#/definitions/middleware.APIResponse'
  5821. - properties:
  5822. data:
  5823. additionalProperties:
  5824. items:
  5825. $ref: '#/definitions/model.ModelConfig'
  5826. type: array
  5827. type: object
  5828. type: object
  5829. security:
  5830. - ApiKeyAuth: []
  5831. summary: Get enabled models
  5832. tags:
  5833. - model
  5834. /api/models/enabled/{set}:
  5835. get:
  5836. description: Returns a list of enabled models by set
  5837. parameters:
  5838. - description: Models set
  5839. in: path
  5840. name: set
  5841. required: true
  5842. type: string
  5843. produces:
  5844. - application/json
  5845. responses:
  5846. "200":
  5847. description: OK
  5848. schema:
  5849. allOf:
  5850. - $ref: '#/definitions/middleware.APIResponse'
  5851. - properties:
  5852. data:
  5853. items:
  5854. $ref: '#/definitions/model.ModelConfig'
  5855. type: array
  5856. type: object
  5857. security:
  5858. - ApiKeyAuth: []
  5859. summary: Get enabled models by set
  5860. tags:
  5861. - model
  5862. /api/models/sets:
  5863. get:
  5864. description: Returns a list of enabled models and channels sets
  5865. produces:
  5866. - application/json
  5867. responses:
  5868. "200":
  5869. description: OK
  5870. schema:
  5871. allOf:
  5872. - $ref: '#/definitions/middleware.APIResponse'
  5873. - properties:
  5874. data:
  5875. additionalProperties:
  5876. additionalProperties:
  5877. items:
  5878. $ref: '#/definitions/controller.EnabledModelChannel'
  5879. type: array
  5880. type: object
  5881. type: object
  5882. type: object
  5883. security:
  5884. - ApiKeyAuth: []
  5885. summary: Get enabled models and channels sets
  5886. tags:
  5887. - model
  5888. /api/monitor/:
  5889. delete:
  5890. description: Clears all model errors
  5891. produces:
  5892. - application/json
  5893. responses:
  5894. "200":
  5895. description: OK
  5896. schema:
  5897. $ref: '#/definitions/middleware.APIResponse'
  5898. security:
  5899. - ApiKeyAuth: []
  5900. summary: Clear all model errors
  5901. tags:
  5902. - monitor
  5903. get:
  5904. description: Returns a list of all channel model error rates
  5905. produces:
  5906. - application/json
  5907. responses:
  5908. "200":
  5909. description: OK
  5910. schema:
  5911. allOf:
  5912. - $ref: '#/definitions/middleware.APIResponse'
  5913. - properties:
  5914. data:
  5915. additionalProperties:
  5916. additionalProperties:
  5917. format: float64
  5918. type: number
  5919. type: object
  5920. type: object
  5921. type: object
  5922. security:
  5923. - ApiKeyAuth: []
  5924. summary: Get all channel model error rates
  5925. tags:
  5926. - monitor
  5927. /api/monitor/{id}:
  5928. delete:
  5929. description: Clears all model errors for a specific channel
  5930. parameters:
  5931. - description: Channel ID
  5932. in: path
  5933. name: id
  5934. required: true
  5935. type: integer
  5936. produces:
  5937. - application/json
  5938. responses:
  5939. "200":
  5940. description: OK
  5941. schema:
  5942. $ref: '#/definitions/middleware.APIResponse'
  5943. security:
  5944. - ApiKeyAuth: []
  5945. summary: Clear channel all model errors
  5946. tags:
  5947. - monitor
  5948. get:
  5949. description: Returns a list of channel model error rates
  5950. parameters:
  5951. - description: Channel ID
  5952. in: path
  5953. name: id
  5954. required: true
  5955. type: integer
  5956. produces:
  5957. - application/json
  5958. responses:
  5959. "200":
  5960. description: OK
  5961. schema:
  5962. allOf:
  5963. - $ref: '#/definitions/middleware.APIResponse'
  5964. - properties:
  5965. data:
  5966. items:
  5967. additionalProperties:
  5968. format: float64
  5969. type: number
  5970. type: object
  5971. type: array
  5972. type: object
  5973. security:
  5974. - ApiKeyAuth: []
  5975. summary: Get channel model error rates
  5976. tags:
  5977. - monitor
  5978. /api/monitor/{id}/{model}:
  5979. delete:
  5980. description: Clears model errors for a specific channel and model
  5981. parameters:
  5982. - description: Channel ID
  5983. in: path
  5984. name: id
  5985. required: true
  5986. type: integer
  5987. - description: Model name
  5988. in: path
  5989. name: model
  5990. required: true
  5991. type: string
  5992. produces:
  5993. - application/json
  5994. responses:
  5995. "200":
  5996. description: OK
  5997. schema:
  5998. $ref: '#/definitions/middleware.APIResponse'
  5999. security:
  6000. - ApiKeyAuth: []
  6001. summary: Clear channel model errors
  6002. tags:
  6003. - monitor
  6004. /api/monitor/banned_channels:
  6005. get:
  6006. description: Returns a list of all banned model channels
  6007. produces:
  6008. - application/json
  6009. responses:
  6010. "200":
  6011. description: OK
  6012. schema:
  6013. allOf:
  6014. - $ref: '#/definitions/middleware.APIResponse'
  6015. - properties:
  6016. data:
  6017. additionalProperties:
  6018. items:
  6019. format: int64
  6020. type: integer
  6021. type: array
  6022. type: object
  6023. type: object
  6024. security:
  6025. - ApiKeyAuth: []
  6026. summary: Get all banned model channels
  6027. tags:
  6028. - monitor
  6029. /api/monitor/models:
  6030. get:
  6031. description: Returns a list of models error rate
  6032. produces:
  6033. - application/json
  6034. responses:
  6035. "200":
  6036. description: OK
  6037. schema:
  6038. allOf:
  6039. - $ref: '#/definitions/middleware.APIResponse'
  6040. - properties:
  6041. data:
  6042. additionalProperties:
  6043. format: float64
  6044. type: number
  6045. type: object
  6046. type: object
  6047. security:
  6048. - ApiKeyAuth: []
  6049. summary: Get models error rate
  6050. tags:
  6051. - monitor
  6052. /api/option/:
  6053. get:
  6054. description: Returns a list of options
  6055. produces:
  6056. - application/json
  6057. responses:
  6058. "200":
  6059. description: OK
  6060. schema:
  6061. allOf:
  6062. - $ref: '#/definitions/middleware.APIResponse'
  6063. - properties:
  6064. data:
  6065. additionalProperties:
  6066. type: string
  6067. type: object
  6068. type: object
  6069. security:
  6070. - ApiKeyAuth: []
  6071. summary: Get options
  6072. tags:
  6073. - option
  6074. post:
  6075. description: Updates a single option
  6076. parameters:
  6077. - description: Option value
  6078. in: body
  6079. name: value
  6080. required: true
  6081. schema:
  6082. $ref: '#/definitions/model.Option'
  6083. produces:
  6084. - application/json
  6085. responses:
  6086. "200":
  6087. description: OK
  6088. schema:
  6089. $ref: '#/definitions/middleware.APIResponse'
  6090. security:
  6091. - ApiKeyAuth: []
  6092. summary: Update option
  6093. tags:
  6094. - option
  6095. put:
  6096. description: Updates a single option
  6097. parameters:
  6098. - description: Option value
  6099. in: body
  6100. name: value
  6101. required: true
  6102. schema:
  6103. $ref: '#/definitions/model.Option'
  6104. produces:
  6105. - application/json
  6106. responses:
  6107. "200":
  6108. description: OK
  6109. schema:
  6110. $ref: '#/definitions/middleware.APIResponse'
  6111. security:
  6112. - ApiKeyAuth: []
  6113. summary: Update option
  6114. tags:
  6115. - option
  6116. /api/option/{key}:
  6117. get:
  6118. description: Returns a single option
  6119. parameters:
  6120. - description: Option key
  6121. in: path
  6122. name: key
  6123. required: true
  6124. type: string
  6125. produces:
  6126. - application/json
  6127. responses:
  6128. "200":
  6129. description: OK
  6130. schema:
  6131. allOf:
  6132. - $ref: '#/definitions/middleware.APIResponse'
  6133. - properties:
  6134. data:
  6135. $ref: '#/definitions/model.Option'
  6136. type: object
  6137. security:
  6138. - ApiKeyAuth: []
  6139. summary: Get option
  6140. tags:
  6141. - option
  6142. put:
  6143. description: Updates a single option by key
  6144. parameters:
  6145. - description: Option key
  6146. in: path
  6147. name: key
  6148. required: true
  6149. type: string
  6150. - description: Option value
  6151. in: body
  6152. name: value
  6153. required: true
  6154. schema:
  6155. type: string
  6156. produces:
  6157. - application/json
  6158. responses:
  6159. "200":
  6160. description: OK
  6161. schema:
  6162. $ref: '#/definitions/middleware.APIResponse'
  6163. security:
  6164. - ApiKeyAuth: []
  6165. summary: Update option by key
  6166. tags:
  6167. - option
  6168. /api/option/batch:
  6169. post:
  6170. description: Updates multiple options
  6171. parameters:
  6172. - description: Options
  6173. in: body
  6174. name: options
  6175. required: true
  6176. schema:
  6177. additionalProperties:
  6178. type: string
  6179. type: object
  6180. produces:
  6181. - application/json
  6182. responses:
  6183. "200":
  6184. description: OK
  6185. schema:
  6186. $ref: '#/definitions/middleware.APIResponse'
  6187. security:
  6188. - ApiKeyAuth: []
  6189. summary: Update options
  6190. tags:
  6191. - option
  6192. /api/status:
  6193. get:
  6194. description: Returns the status of the server
  6195. produces:
  6196. - application/json
  6197. responses:
  6198. "200":
  6199. description: OK
  6200. schema:
  6201. allOf:
  6202. - $ref: '#/definitions/middleware.APIResponse'
  6203. - properties:
  6204. data:
  6205. $ref: '#/definitions/controller.StatusData'
  6206. type: object
  6207. summary: Get status
  6208. tags:
  6209. - misc
  6210. /api/test-embedmcp/{id}:
  6211. delete:
  6212. consumes:
  6213. - application/json
  6214. description: Test Embed MCP Streamable Server with various HTTP methods
  6215. parameters:
  6216. - description: MCP ID
  6217. in: path
  6218. name: id
  6219. required: true
  6220. type: string
  6221. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6222. in: query
  6223. name: config[key]
  6224. type: string
  6225. - description: Reusing configuration parameters (e.g., reusing[authorization]=apikey)
  6226. in: query
  6227. name: reusing[key]
  6228. type: string
  6229. produces:
  6230. - application/json
  6231. responses:
  6232. "200":
  6233. description: OK
  6234. "400":
  6235. description: Bad Request
  6236. security:
  6237. - ApiKeyAuth: []
  6238. summary: Test Embed MCP Streamable Server
  6239. tags:
  6240. - embedmcp
  6241. get:
  6242. consumes:
  6243. - application/json
  6244. description: Test Embed MCP Streamable Server with various HTTP methods
  6245. parameters:
  6246. - description: MCP ID
  6247. in: path
  6248. name: id
  6249. required: true
  6250. type: string
  6251. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6252. in: query
  6253. name: config[key]
  6254. type: string
  6255. - description: Reusing configuration parameters (e.g., reusing[authorization]=apikey)
  6256. in: query
  6257. name: reusing[key]
  6258. type: string
  6259. produces:
  6260. - application/json
  6261. responses:
  6262. "200":
  6263. description: OK
  6264. "400":
  6265. description: Bad Request
  6266. security:
  6267. - ApiKeyAuth: []
  6268. summary: Test Embed MCP Streamable Server
  6269. tags:
  6270. - embedmcp
  6271. post:
  6272. consumes:
  6273. - application/json
  6274. description: Test Embed MCP Streamable Server with various HTTP methods
  6275. parameters:
  6276. - description: MCP ID
  6277. in: path
  6278. name: id
  6279. required: true
  6280. type: string
  6281. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6282. in: query
  6283. name: config[key]
  6284. type: string
  6285. - description: Reusing configuration parameters (e.g., reusing[authorization]=apikey)
  6286. in: query
  6287. name: reusing[key]
  6288. type: string
  6289. produces:
  6290. - application/json
  6291. responses:
  6292. "200":
  6293. description: OK
  6294. "400":
  6295. description: Bad Request
  6296. security:
  6297. - ApiKeyAuth: []
  6298. summary: Test Embed MCP Streamable Server
  6299. tags:
  6300. - embedmcp
  6301. /api/test-embedmcp/{id}/sse:
  6302. get:
  6303. description: Test Embed MCP SSE Server
  6304. parameters:
  6305. - description: MCP ID
  6306. in: path
  6307. name: id
  6308. required: true
  6309. type: string
  6310. - description: Initial configuration parameters (e.g. config[host]=http://localhost:3000)
  6311. in: query
  6312. name: config[key]
  6313. type: string
  6314. - description: Reusing configuration parameters (e.g. reusing[authorization]=apikey)
  6315. in: query
  6316. name: reusing[key]
  6317. type: string
  6318. responses:
  6319. "200":
  6320. description: OK
  6321. "400":
  6322. description: Bad Request
  6323. security:
  6324. - ApiKeyAuth: []
  6325. summary: Test Embed MCP SSE Server
  6326. tags:
  6327. - embedmcp
  6328. /api/test-publicmcp/{group}/{id}/sse:
  6329. get:
  6330. parameters:
  6331. - description: Group ID
  6332. in: path
  6333. name: group
  6334. required: true
  6335. type: string
  6336. - description: MCP ID
  6337. in: path
  6338. name: id
  6339. required: true
  6340. type: string
  6341. responses: {}
  6342. security:
  6343. - ApiKeyAuth: []
  6344. summary: Test Public MCP SSE Server
  6345. /api/token/{group}:
  6346. post:
  6347. consumes:
  6348. - application/json
  6349. description: Adds a new token to a specific group
  6350. parameters:
  6351. - description: Group name
  6352. in: path
  6353. name: group
  6354. required: true
  6355. type: string
  6356. - description: Auto create group
  6357. in: query
  6358. name: auto_create_group
  6359. type: boolean
  6360. - description: Ignore exist
  6361. in: query
  6362. name: ignore_exist
  6363. type: boolean
  6364. - description: Token information
  6365. in: body
  6366. name: token
  6367. required: true
  6368. schema:
  6369. $ref: '#/definitions/controller.AddTokenRequest'
  6370. produces:
  6371. - application/json
  6372. responses:
  6373. "200":
  6374. description: OK
  6375. schema:
  6376. allOf:
  6377. - $ref: '#/definitions/middleware.APIResponse'
  6378. - properties:
  6379. data:
  6380. $ref: '#/definitions/controller.TokenResponse'
  6381. type: object
  6382. security:
  6383. - ApiKeyAuth: []
  6384. summary: Add group token
  6385. tags:
  6386. - token
  6387. /api/token/{group}/{id}:
  6388. delete:
  6389. description: Deletes a specific token from a group
  6390. parameters:
  6391. - description: Group name
  6392. in: path
  6393. name: group
  6394. required: true
  6395. type: string
  6396. - description: Token ID
  6397. in: path
  6398. name: id
  6399. required: true
  6400. type: integer
  6401. produces:
  6402. - application/json
  6403. responses:
  6404. "200":
  6405. description: OK
  6406. schema:
  6407. $ref: '#/definitions/middleware.APIResponse'
  6408. security:
  6409. - ApiKeyAuth: []
  6410. summary: Delete group token
  6411. tags:
  6412. - token
  6413. get:
  6414. description: Returns detailed information about a specific token for a specific
  6415. group
  6416. parameters:
  6417. - description: Group name
  6418. in: path
  6419. name: group
  6420. required: true
  6421. type: string
  6422. - description: Token ID
  6423. in: path
  6424. name: id
  6425. required: true
  6426. type: integer
  6427. produces:
  6428. - application/json
  6429. responses:
  6430. "200":
  6431. description: OK
  6432. schema:
  6433. allOf:
  6434. - $ref: '#/definitions/middleware.APIResponse'
  6435. - properties:
  6436. data:
  6437. $ref: '#/definitions/controller.TokenResponse'
  6438. type: object
  6439. security:
  6440. - ApiKeyAuth: []
  6441. summary: Get token by ID for a specific group
  6442. tags:
  6443. - token
  6444. put:
  6445. consumes:
  6446. - application/json
  6447. description: Updates an existing token in a specific group
  6448. parameters:
  6449. - description: Group name
  6450. in: path
  6451. name: group
  6452. required: true
  6453. type: string
  6454. - description: Token ID
  6455. in: path
  6456. name: id
  6457. required: true
  6458. type: integer
  6459. - description: Updated token information
  6460. in: body
  6461. name: token
  6462. required: true
  6463. schema:
  6464. $ref: '#/definitions/model.UpdateTokenRequest'
  6465. produces:
  6466. - application/json
  6467. responses:
  6468. "200":
  6469. description: OK
  6470. schema:
  6471. allOf:
  6472. - $ref: '#/definitions/middleware.APIResponse'
  6473. - properties:
  6474. data:
  6475. $ref: '#/definitions/controller.TokenResponse'
  6476. type: object
  6477. security:
  6478. - ApiKeyAuth: []
  6479. summary: Update group token
  6480. tags:
  6481. - token
  6482. /api/token/{group}/{id}/name:
  6483. post:
  6484. consumes:
  6485. - application/json
  6486. description: Updates the name of a token in a specific group
  6487. parameters:
  6488. - description: Group name
  6489. in: path
  6490. name: group
  6491. required: true
  6492. type: string
  6493. - description: Token ID
  6494. in: path
  6495. name: id
  6496. required: true
  6497. type: integer
  6498. - description: Name information
  6499. in: body
  6500. name: name
  6501. required: true
  6502. schema:
  6503. $ref: '#/definitions/controller.UpdateTokenNameRequest'
  6504. produces:
  6505. - application/json
  6506. responses:
  6507. "200":
  6508. description: OK
  6509. schema:
  6510. $ref: '#/definitions/middleware.APIResponse'
  6511. security:
  6512. - ApiKeyAuth: []
  6513. summary: Update group token name
  6514. tags:
  6515. - token
  6516. /api/token/{group}/{id}/status:
  6517. post:
  6518. consumes:
  6519. - application/json
  6520. description: Updates the status of a token in a specific group
  6521. parameters:
  6522. - description: Group name
  6523. in: path
  6524. name: group
  6525. required: true
  6526. type: string
  6527. - description: Token ID
  6528. in: path
  6529. name: id
  6530. required: true
  6531. type: integer
  6532. - description: Status information
  6533. in: body
  6534. name: status
  6535. required: true
  6536. schema:
  6537. $ref: '#/definitions/controller.UpdateTokenStatusRequest'
  6538. produces:
  6539. - application/json
  6540. responses:
  6541. "200":
  6542. description: OK
  6543. schema:
  6544. $ref: '#/definitions/middleware.APIResponse'
  6545. security:
  6546. - ApiKeyAuth: []
  6547. summary: Update group token status
  6548. tags:
  6549. - token
  6550. /api/token/{group}/batch_delete:
  6551. post:
  6552. description: Deletes multiple tokens from a specific group
  6553. parameters:
  6554. - description: Group name
  6555. in: path
  6556. name: group
  6557. required: true
  6558. type: string
  6559. - description: Token IDs
  6560. in: body
  6561. name: ids
  6562. required: true
  6563. schema:
  6564. items:
  6565. type: integer
  6566. type: array
  6567. produces:
  6568. - application/json
  6569. responses:
  6570. "200":
  6571. description: OK
  6572. schema:
  6573. $ref: '#/definitions/middleware.APIResponse'
  6574. security:
  6575. - ApiKeyAuth: []
  6576. summary: Delete group tokens
  6577. tags:
  6578. - token
  6579. /api/token/{group}/search:
  6580. get:
  6581. description: Returns a paginated list of tokens for a specific group based on
  6582. search criteria
  6583. parameters:
  6584. - description: Group name
  6585. in: path
  6586. name: group
  6587. required: true
  6588. type: string
  6589. - description: Keyword
  6590. in: query
  6591. name: keyword
  6592. type: string
  6593. - description: Page number
  6594. in: query
  6595. name: page
  6596. type: integer
  6597. - description: Items per page
  6598. in: query
  6599. name: per_page
  6600. type: integer
  6601. - description: Order
  6602. in: query
  6603. name: order
  6604. type: string
  6605. - description: Name
  6606. in: query
  6607. name: name
  6608. type: string
  6609. - description: Key
  6610. in: query
  6611. name: key
  6612. type: string
  6613. - description: Status
  6614. in: query
  6615. name: status
  6616. type: integer
  6617. produces:
  6618. - application/json
  6619. responses:
  6620. "200":
  6621. description: OK
  6622. schema:
  6623. allOf:
  6624. - $ref: '#/definitions/middleware.APIResponse'
  6625. - properties:
  6626. data:
  6627. additionalProperties:
  6628. allOf:
  6629. - {}
  6630. - properties:
  6631. tokens:
  6632. items:
  6633. $ref: '#/definitions/controller.TokenResponse'
  6634. type: array
  6635. total:
  6636. type: integer
  6637. type: object
  6638. type: object
  6639. type: object
  6640. security:
  6641. - ApiKeyAuth: []
  6642. summary: Search tokens for a specific group
  6643. tags:
  6644. - token
  6645. /api/tokens/:
  6646. get:
  6647. description: Returns a paginated list of all tokens
  6648. parameters:
  6649. - description: Page number
  6650. in: query
  6651. name: page
  6652. type: integer
  6653. - description: Items per page
  6654. in: query
  6655. name: per_page
  6656. type: integer
  6657. - description: Group name
  6658. in: query
  6659. name: group
  6660. type: string
  6661. - description: Order
  6662. in: query
  6663. name: order
  6664. type: string
  6665. - description: Status
  6666. in: query
  6667. name: status
  6668. type: integer
  6669. produces:
  6670. - application/json
  6671. responses:
  6672. "200":
  6673. description: OK
  6674. schema:
  6675. allOf:
  6676. - $ref: '#/definitions/middleware.APIResponse'
  6677. - properties:
  6678. data:
  6679. additionalProperties:
  6680. allOf:
  6681. - {}
  6682. - properties:
  6683. tokens:
  6684. items:
  6685. $ref: '#/definitions/controller.TokenResponse'
  6686. type: array
  6687. total:
  6688. type: integer
  6689. type: object
  6690. type: object
  6691. type: object
  6692. security:
  6693. - ApiKeyAuth: []
  6694. summary: Get all tokens
  6695. tags:
  6696. - tokens
  6697. /api/tokens/{group}:
  6698. get:
  6699. description: Returns a paginated list of all tokens for a specific group
  6700. parameters:
  6701. - description: Group name
  6702. in: path
  6703. name: group
  6704. required: true
  6705. type: string
  6706. - description: Page number
  6707. in: query
  6708. name: page
  6709. type: integer
  6710. - description: Items per page
  6711. in: query
  6712. name: per_page
  6713. type: integer
  6714. - description: Order
  6715. in: query
  6716. name: order
  6717. type: string
  6718. - description: Status
  6719. in: query
  6720. name: status
  6721. type: integer
  6722. produces:
  6723. - application/json
  6724. responses:
  6725. "200":
  6726. description: OK
  6727. schema:
  6728. allOf:
  6729. - $ref: '#/definitions/middleware.APIResponse'
  6730. - properties:
  6731. data:
  6732. additionalProperties:
  6733. allOf:
  6734. - {}
  6735. - properties:
  6736. tokens:
  6737. items:
  6738. $ref: '#/definitions/controller.TokenResponse'
  6739. type: array
  6740. total:
  6741. type: integer
  6742. type: object
  6743. type: object
  6744. type: object
  6745. security:
  6746. - ApiKeyAuth: []
  6747. summary: Get all tokens for a specific group
  6748. tags:
  6749. - tokens
  6750. /api/tokens/{id}:
  6751. delete:
  6752. description: Deletes a specific token by ID
  6753. parameters:
  6754. - description: Token ID
  6755. in: path
  6756. name: id
  6757. required: true
  6758. type: integer
  6759. produces:
  6760. - application/json
  6761. responses:
  6762. "200":
  6763. description: OK
  6764. schema:
  6765. $ref: '#/definitions/middleware.APIResponse'
  6766. security:
  6767. - ApiKeyAuth: []
  6768. summary: Delete token
  6769. tags:
  6770. - tokens
  6771. get:
  6772. description: Returns detailed information about a specific token
  6773. parameters:
  6774. - description: Token ID
  6775. in: path
  6776. name: id
  6777. required: true
  6778. type: integer
  6779. produces:
  6780. - application/json
  6781. responses:
  6782. "200":
  6783. description: OK
  6784. schema:
  6785. allOf:
  6786. - $ref: '#/definitions/middleware.APIResponse'
  6787. - properties:
  6788. data:
  6789. $ref: '#/definitions/controller.TokenResponse'
  6790. type: object
  6791. security:
  6792. - ApiKeyAuth: []
  6793. summary: Get token by ID
  6794. tags:
  6795. - tokens
  6796. put:
  6797. consumes:
  6798. - application/json
  6799. description: Updates an existing token's information
  6800. parameters:
  6801. - description: Token ID
  6802. in: path
  6803. name: id
  6804. required: true
  6805. type: integer
  6806. - description: Updated token information
  6807. in: body
  6808. name: token
  6809. required: true
  6810. schema:
  6811. $ref: '#/definitions/model.UpdateTokenRequest'
  6812. produces:
  6813. - application/json
  6814. responses:
  6815. "200":
  6816. description: OK
  6817. schema:
  6818. allOf:
  6819. - $ref: '#/definitions/middleware.APIResponse'
  6820. - properties:
  6821. data:
  6822. $ref: '#/definitions/controller.TokenResponse'
  6823. type: object
  6824. security:
  6825. - ApiKeyAuth: []
  6826. summary: Update token
  6827. tags:
  6828. - tokens
  6829. /api/tokens/{id}/name:
  6830. post:
  6831. consumes:
  6832. - application/json
  6833. description: Updates the name of a specific token
  6834. parameters:
  6835. - description: Token ID
  6836. in: path
  6837. name: id
  6838. required: true
  6839. type: integer
  6840. - description: Name information
  6841. in: body
  6842. name: name
  6843. required: true
  6844. schema:
  6845. $ref: '#/definitions/controller.UpdateTokenNameRequest'
  6846. produces:
  6847. - application/json
  6848. responses:
  6849. "200":
  6850. description: OK
  6851. schema:
  6852. $ref: '#/definitions/middleware.APIResponse'
  6853. security:
  6854. - ApiKeyAuth: []
  6855. summary: Update token name
  6856. tags:
  6857. - tokens
  6858. /api/tokens/{id}/status:
  6859. post:
  6860. consumes:
  6861. - application/json
  6862. description: Updates the status of a specific token
  6863. parameters:
  6864. - description: Token ID
  6865. in: path
  6866. name: id
  6867. required: true
  6868. type: integer
  6869. - description: Status information
  6870. in: body
  6871. name: status
  6872. required: true
  6873. schema:
  6874. $ref: '#/definitions/controller.UpdateTokenStatusRequest'
  6875. produces:
  6876. - application/json
  6877. responses:
  6878. "200":
  6879. description: OK
  6880. schema:
  6881. $ref: '#/definitions/middleware.APIResponse'
  6882. security:
  6883. - ApiKeyAuth: []
  6884. summary: Update token status
  6885. tags:
  6886. - tokens
  6887. /api/tokens/batch_delete:
  6888. post:
  6889. consumes:
  6890. - application/json
  6891. description: Deletes multiple tokens by their IDs
  6892. parameters:
  6893. - description: Token IDs
  6894. in: body
  6895. name: ids
  6896. required: true
  6897. schema:
  6898. items:
  6899. type: integer
  6900. type: array
  6901. produces:
  6902. - application/json
  6903. responses:
  6904. "200":
  6905. description: OK
  6906. schema:
  6907. $ref: '#/definitions/middleware.APIResponse'
  6908. security:
  6909. - ApiKeyAuth: []
  6910. summary: Delete multiple tokens
  6911. tags:
  6912. - tokens
  6913. /api/tokens/search:
  6914. get:
  6915. description: Returns a paginated list of tokens based on search criteria
  6916. parameters:
  6917. - description: Keyword
  6918. in: query
  6919. name: keyword
  6920. type: string
  6921. - description: Page number
  6922. in: query
  6923. name: page
  6924. type: integer
  6925. - description: Items per page
  6926. in: query
  6927. name: per_page
  6928. type: integer
  6929. - description: Order
  6930. in: query
  6931. name: order
  6932. type: string
  6933. - description: Name
  6934. in: query
  6935. name: name
  6936. type: string
  6937. - description: Key
  6938. in: query
  6939. name: key
  6940. type: string
  6941. - description: Status
  6942. in: query
  6943. name: status
  6944. type: integer
  6945. - description: Group
  6946. in: query
  6947. name: group
  6948. type: string
  6949. produces:
  6950. - application/json
  6951. responses:
  6952. "200":
  6953. description: OK
  6954. schema:
  6955. allOf:
  6956. - $ref: '#/definitions/middleware.APIResponse'
  6957. - properties:
  6958. data:
  6959. additionalProperties:
  6960. allOf:
  6961. - {}
  6962. - properties:
  6963. tokens:
  6964. items:
  6965. $ref: '#/definitions/controller.TokenResponse'
  6966. type: array
  6967. total:
  6968. type: integer
  6969. type: object
  6970. type: object
  6971. type: object
  6972. security:
  6973. - ApiKeyAuth: []
  6974. summary: Search tokens
  6975. tags:
  6976. - tokens
  6977. /mcp:
  6978. delete:
  6979. responses: {}
  6980. security:
  6981. - ApiKeyAuth: []
  6982. summary: Host MCP Streamable Server
  6983. get:
  6984. responses: {}
  6985. security:
  6986. - ApiKeyAuth: []
  6987. summary: Host MCP Streamable Server
  6988. post:
  6989. responses: {}
  6990. security:
  6991. - ApiKeyAuth: []
  6992. summary: Host MCP Streamable Server
  6993. /mcp/group/{id}:
  6994. delete:
  6995. responses: {}
  6996. security:
  6997. - ApiKeyAuth: []
  6998. summary: Group MCP Streamable Server
  6999. get:
  7000. responses: {}
  7001. security:
  7002. - ApiKeyAuth: []
  7003. summary: Group MCP Streamable Server
  7004. post:
  7005. responses: {}
  7006. security:
  7007. - ApiKeyAuth: []
  7008. summary: Group MCP Streamable Server
  7009. /mcp/group/{id}/sse:
  7010. get:
  7011. responses: {}
  7012. security:
  7013. - ApiKeyAuth: []
  7014. summary: Group MCP SSE Server
  7015. /mcp/public/{id}:
  7016. delete:
  7017. responses: {}
  7018. security:
  7019. - ApiKeyAuth: []
  7020. summary: Public MCP Streamable Server
  7021. get:
  7022. responses: {}
  7023. security:
  7024. - ApiKeyAuth: []
  7025. summary: Public MCP Streamable Server
  7026. post:
  7027. responses: {}
  7028. security:
  7029. - ApiKeyAuth: []
  7030. summary: Public MCP Streamable Server
  7031. /mcp/public/{id}/sse:
  7032. get:
  7033. responses: {}
  7034. security:
  7035. - ApiKeyAuth: []
  7036. summary: Public MCP SSE Server
  7037. /message:
  7038. post:
  7039. responses: {}
  7040. summary: MCP SSE Message
  7041. /sse:
  7042. get:
  7043. responses: {}
  7044. security:
  7045. - ApiKeyAuth: []
  7046. summary: Public MCP SSE Server
  7047. /v1/audio/speech:
  7048. post:
  7049. description: AudioSpeech
  7050. parameters:
  7051. - description: Request
  7052. in: body
  7053. name: request
  7054. required: true
  7055. schema:
  7056. $ref: '#/definitions/model.TextToSpeechRequest'
  7057. - description: Optional Aiproxy-Channel header
  7058. in: header
  7059. name: Aiproxy-Channel
  7060. type: string
  7061. produces:
  7062. - application/json
  7063. responses:
  7064. "200":
  7065. description: audio binary
  7066. headers:
  7067. X-RateLimit-Limit-Requests:
  7068. description: X-RateLimit-Limit-Requests
  7069. type: integer
  7070. X-RateLimit-Limit-Tokens:
  7071. description: X-RateLimit-Limit-Tokens
  7072. type: integer
  7073. X-RateLimit-Remaining-Requests:
  7074. description: X-RateLimit-Remaining-Requests
  7075. type: integer
  7076. X-RateLimit-Remaining-Tokens:
  7077. description: X-RateLimit-Remaining-Tokens
  7078. type: integer
  7079. X-RateLimit-Reset-Requests:
  7080. description: X-RateLimit-Reset-Requests
  7081. type: string
  7082. X-RateLimit-Reset-Tokens:
  7083. description: X-RateLimit-Reset-Tokens
  7084. type: string
  7085. schema:
  7086. type: file
  7087. security:
  7088. - ApiKeyAuth: []
  7089. summary: AudioSpeech
  7090. tags:
  7091. - relay
  7092. /v1/audio/transcriptions:
  7093. post:
  7094. description: AudioTranscription
  7095. parameters:
  7096. - description: Model
  7097. in: formData
  7098. name: model
  7099. required: true
  7100. type: string
  7101. - description: File
  7102. in: formData
  7103. name: file
  7104. required: true
  7105. type: file
  7106. - description: Optional Aiproxy-Channel header
  7107. in: header
  7108. name: Aiproxy-Channel
  7109. type: string
  7110. produces:
  7111. - application/json
  7112. responses:
  7113. "200":
  7114. description: OK
  7115. headers:
  7116. X-RateLimit-Limit-Requests:
  7117. description: X-RateLimit-Limit-Requests
  7118. type: integer
  7119. X-RateLimit-Limit-Tokens:
  7120. description: X-RateLimit-Limit-Tokens
  7121. type: integer
  7122. X-RateLimit-Remaining-Requests:
  7123. description: X-RateLimit-Remaining-Requests
  7124. type: integer
  7125. X-RateLimit-Remaining-Tokens:
  7126. description: X-RateLimit-Remaining-Tokens
  7127. type: integer
  7128. X-RateLimit-Reset-Requests:
  7129. description: X-RateLimit-Reset-Requests
  7130. type: string
  7131. X-RateLimit-Reset-Tokens:
  7132. description: X-RateLimit-Reset-Tokens
  7133. type: string
  7134. schema:
  7135. $ref: '#/definitions/model.SttJSONResponse'
  7136. security:
  7137. - ApiKeyAuth: []
  7138. summary: AudioTranscription
  7139. tags:
  7140. - relay
  7141. /v1/audio/translations:
  7142. post:
  7143. description: AudioTranslation
  7144. parameters:
  7145. - description: Model
  7146. in: formData
  7147. name: model
  7148. required: true
  7149. type: string
  7150. - description: File
  7151. in: formData
  7152. name: file
  7153. required: true
  7154. type: file
  7155. - description: Optional Aiproxy-Channel header
  7156. in: header
  7157. name: Aiproxy-Channel
  7158. type: string
  7159. produces:
  7160. - application/json
  7161. responses:
  7162. "200":
  7163. description: OK
  7164. headers:
  7165. X-RateLimit-Limit-Requests:
  7166. description: X-RateLimit-Limit-Requests
  7167. type: integer
  7168. X-RateLimit-Limit-Tokens:
  7169. description: X-RateLimit-Limit-Tokens
  7170. type: integer
  7171. X-RateLimit-Remaining-Requests:
  7172. description: X-RateLimit-Remaining-Requests
  7173. type: integer
  7174. X-RateLimit-Remaining-Tokens:
  7175. description: X-RateLimit-Remaining-Tokens
  7176. type: integer
  7177. X-RateLimit-Reset-Requests:
  7178. description: X-RateLimit-Reset-Requests
  7179. type: string
  7180. X-RateLimit-Reset-Tokens:
  7181. description: X-RateLimit-Reset-Tokens
  7182. type: string
  7183. schema:
  7184. $ref: '#/definitions/model.SttJSONResponse'
  7185. security:
  7186. - ApiKeyAuth: []
  7187. summary: AudioTranslation
  7188. tags:
  7189. - relay
  7190. /v1/chat/completions:
  7191. post:
  7192. description: ChatCompletions
  7193. parameters:
  7194. - description: Request
  7195. in: body
  7196. name: request
  7197. required: true
  7198. schema:
  7199. $ref: '#/definitions/model.GeneralOpenAIRequest'
  7200. - description: Optional Aiproxy-Channel header
  7201. in: header
  7202. name: Aiproxy-Channel
  7203. type: string
  7204. produces:
  7205. - application/json
  7206. responses:
  7207. "200":
  7208. description: OK
  7209. headers:
  7210. X-RateLimit-Limit-Requests:
  7211. description: X-RateLimit-Limit-Requests
  7212. type: integer
  7213. X-RateLimit-Limit-Tokens:
  7214. description: X-RateLimit-Limit-Tokens
  7215. type: integer
  7216. X-RateLimit-Remaining-Requests:
  7217. description: X-RateLimit-Remaining-Requests
  7218. type: integer
  7219. X-RateLimit-Remaining-Tokens:
  7220. description: X-RateLimit-Remaining-Tokens
  7221. type: integer
  7222. X-RateLimit-Reset-Requests:
  7223. description: X-RateLimit-Reset-Requests
  7224. type: string
  7225. X-RateLimit-Reset-Tokens:
  7226. description: X-RateLimit-Reset-Tokens
  7227. type: string
  7228. schema:
  7229. $ref: '#/definitions/model.TextResponse'
  7230. security:
  7231. - ApiKeyAuth: []
  7232. summary: ChatCompletions
  7233. tags:
  7234. - relay
  7235. /v1/completions:
  7236. post:
  7237. description: Completions
  7238. parameters:
  7239. - description: Request
  7240. in: body
  7241. name: request
  7242. required: true
  7243. schema:
  7244. $ref: '#/definitions/model.GeneralOpenAIRequest'
  7245. - description: Optional Aiproxy-Channel header
  7246. in: header
  7247. name: Aiproxy-Channel
  7248. type: string
  7249. produces:
  7250. - application/json
  7251. responses:
  7252. "200":
  7253. description: OK
  7254. headers:
  7255. X-RateLimit-Limit-Requests:
  7256. description: X-RateLimit-Limit-Requests
  7257. type: integer
  7258. X-RateLimit-Limit-Tokens:
  7259. description: X-RateLimit-Limit-Tokens
  7260. type: integer
  7261. X-RateLimit-Remaining-Requests:
  7262. description: X-RateLimit-Remaining-Requests
  7263. type: integer
  7264. X-RateLimit-Remaining-Tokens:
  7265. description: X-RateLimit-Remaining-Tokens
  7266. type: integer
  7267. X-RateLimit-Reset-Requests:
  7268. description: X-RateLimit-Reset-Requests
  7269. type: string
  7270. X-RateLimit-Reset-Tokens:
  7271. description: X-RateLimit-Reset-Tokens
  7272. type: string
  7273. schema:
  7274. $ref: '#/definitions/model.TextResponse'
  7275. security:
  7276. - ApiKeyAuth: []
  7277. summary: Completions
  7278. tags:
  7279. - relay
  7280. /v1/dashboard/billing/quota:
  7281. get:
  7282. description: Get quota
  7283. produces:
  7284. - application/json
  7285. responses:
  7286. "200":
  7287. description: OK
  7288. schema:
  7289. $ref: '#/definitions/balance.GroupQuota'
  7290. security:
  7291. - ApiKeyAuth: []
  7292. summary: Get quota
  7293. tags:
  7294. - relay
  7295. /v1/dashboard/billing/subscription:
  7296. get:
  7297. description: Get subscription
  7298. produces:
  7299. - application/json
  7300. responses:
  7301. "200":
  7302. description: OK
  7303. schema:
  7304. $ref: '#/definitions/openai.SubscriptionResponse'
  7305. security:
  7306. - ApiKeyAuth: []
  7307. summary: Get subscription
  7308. tags:
  7309. - relay
  7310. /v1/dashboard/billing/usage:
  7311. get:
  7312. description: Get usage
  7313. produces:
  7314. - application/json
  7315. responses:
  7316. "200":
  7317. description: OK
  7318. schema:
  7319. $ref: '#/definitions/openai.UsageResponse'
  7320. security:
  7321. - ApiKeyAuth: []
  7322. summary: Get usage
  7323. tags:
  7324. - relay
  7325. /v1/embeddings:
  7326. post:
  7327. description: Embeddings
  7328. parameters:
  7329. - description: Request
  7330. in: body
  7331. name: request
  7332. required: true
  7333. schema:
  7334. $ref: '#/definitions/model.EmbeddingRequest'
  7335. - description: Optional Aiproxy-Channel header
  7336. in: header
  7337. name: Aiproxy-Channel
  7338. type: string
  7339. produces:
  7340. - application/json
  7341. responses:
  7342. "200":
  7343. description: OK
  7344. headers:
  7345. X-RateLimit-Limit-Requests:
  7346. description: X-RateLimit-Limit-Requests
  7347. type: integer
  7348. X-RateLimit-Limit-Tokens:
  7349. description: X-RateLimit-Limit-Tokens
  7350. type: integer
  7351. X-RateLimit-Remaining-Requests:
  7352. description: X-RateLimit-Remaining-Requests
  7353. type: integer
  7354. X-RateLimit-Remaining-Tokens:
  7355. description: X-RateLimit-Remaining-Tokens
  7356. type: integer
  7357. X-RateLimit-Reset-Requests:
  7358. description: X-RateLimit-Reset-Requests
  7359. type: string
  7360. X-RateLimit-Reset-Tokens:
  7361. description: X-RateLimit-Reset-Tokens
  7362. type: string
  7363. schema:
  7364. $ref: '#/definitions/model.EmbeddingResponse'
  7365. security:
  7366. - ApiKeyAuth: []
  7367. summary: Embeddings
  7368. tags:
  7369. - relay
  7370. /v1/images/edits:
  7371. post:
  7372. description: ImagesEdits
  7373. parameters:
  7374. - description: Prompt
  7375. in: formData
  7376. name: prompt
  7377. required: true
  7378. type: string
  7379. - description: Model
  7380. in: formData
  7381. name: model
  7382. required: true
  7383. type: string
  7384. - description: Images
  7385. in: formData
  7386. name: image
  7387. required: true
  7388. type: file
  7389. - description: Optional Aiproxy-Channel header
  7390. in: header
  7391. name: Aiproxy-Channel
  7392. type: string
  7393. produces:
  7394. - application/json
  7395. responses:
  7396. "200":
  7397. description: OK
  7398. headers:
  7399. X-RateLimit-Limit-Requests:
  7400. description: X-RateLimit-Limit-Requests
  7401. type: integer
  7402. X-RateLimit-Limit-Tokens:
  7403. description: X-RateLimit-Limit-Tokens
  7404. type: integer
  7405. X-RateLimit-Remaining-Requests:
  7406. description: X-RateLimit-Remaining-Requests
  7407. type: integer
  7408. X-RateLimit-Remaining-Tokens:
  7409. description: X-RateLimit-Remaining-Tokens
  7410. type: integer
  7411. X-RateLimit-Reset-Requests:
  7412. description: X-RateLimit-Reset-Requests
  7413. type: string
  7414. X-RateLimit-Reset-Tokens:
  7415. description: X-RateLimit-Reset-Tokens
  7416. type: string
  7417. schema:
  7418. $ref: '#/definitions/model.SttJSONResponse'
  7419. security:
  7420. - ApiKeyAuth: []
  7421. summary: ImagesEdits
  7422. tags:
  7423. - relay
  7424. /v1/images/generations:
  7425. post:
  7426. description: ImagesGenerations
  7427. parameters:
  7428. - description: Request
  7429. in: body
  7430. name: request
  7431. required: true
  7432. schema:
  7433. $ref: '#/definitions/model.ImageRequest'
  7434. - description: Optional Aiproxy-Channel header
  7435. in: header
  7436. name: Aiproxy-Channel
  7437. type: string
  7438. produces:
  7439. - application/json
  7440. responses:
  7441. "200":
  7442. description: OK
  7443. headers:
  7444. X-RateLimit-Limit-Requests:
  7445. description: X-RateLimit-Limit-Requests
  7446. type: integer
  7447. X-RateLimit-Limit-Tokens:
  7448. description: X-RateLimit-Limit-Tokens
  7449. type: integer
  7450. X-RateLimit-Remaining-Requests:
  7451. description: X-RateLimit-Remaining-Requests
  7452. type: integer
  7453. X-RateLimit-Remaining-Tokens:
  7454. description: X-RateLimit-Remaining-Tokens
  7455. type: integer
  7456. X-RateLimit-Reset-Requests:
  7457. description: X-RateLimit-Reset-Requests
  7458. type: string
  7459. X-RateLimit-Reset-Tokens:
  7460. description: X-RateLimit-Reset-Tokens
  7461. type: string
  7462. schema:
  7463. $ref: '#/definitions/model.ImageResponse'
  7464. security:
  7465. - ApiKeyAuth: []
  7466. summary: ImagesGenerations
  7467. tags:
  7468. - relay
  7469. /v1/messages:
  7470. post:
  7471. description: Anthropic
  7472. parameters:
  7473. - description: Request
  7474. in: body
  7475. name: request
  7476. required: true
  7477. schema:
  7478. $ref: '#/definitions/model.AnthropicMessageRequest'
  7479. - description: Optional Aiproxy-Channel header
  7480. in: header
  7481. name: Aiproxy-Channel
  7482. type: string
  7483. produces:
  7484. - application/json
  7485. responses:
  7486. "200":
  7487. description: OK
  7488. headers:
  7489. X-RateLimit-Limit-Requests:
  7490. description: X-RateLimit-Limit-Requests
  7491. type: integer
  7492. X-RateLimit-Limit-Tokens:
  7493. description: X-RateLimit-Limit-Tokens
  7494. type: integer
  7495. X-RateLimit-Remaining-Requests:
  7496. description: X-RateLimit-Remaining-Requests
  7497. type: integer
  7498. X-RateLimit-Remaining-Tokens:
  7499. description: X-RateLimit-Remaining-Tokens
  7500. type: integer
  7501. X-RateLimit-Reset-Requests:
  7502. description: X-RateLimit-Reset-Requests
  7503. type: string
  7504. X-RateLimit-Reset-Tokens:
  7505. description: X-RateLimit-Reset-Tokens
  7506. type: string
  7507. schema:
  7508. $ref: '#/definitions/model.TextResponse'
  7509. security:
  7510. - ApiKeyAuth: []
  7511. summary: Anthropic
  7512. tags:
  7513. - relay
  7514. /v1/models:
  7515. get:
  7516. description: List all models
  7517. produces:
  7518. - application/json
  7519. responses:
  7520. "200":
  7521. description: OK
  7522. schema:
  7523. properties:
  7524. data:
  7525. items:
  7526. $ref: '#/definitions/controller.OpenAIModels'
  7527. type: array
  7528. object:
  7529. type: string
  7530. type: object
  7531. security:
  7532. - ApiKeyAuth: []
  7533. summary: List models
  7534. tags:
  7535. - relay
  7536. /v1/models/{model}:
  7537. get:
  7538. description: Retrieve a model
  7539. produces:
  7540. - application/json
  7541. responses:
  7542. "200":
  7543. description: OK
  7544. schema:
  7545. $ref: '#/definitions/controller.OpenAIModels'
  7546. security:
  7547. - ApiKeyAuth: []
  7548. summary: Retrieve model
  7549. tags:
  7550. - relay
  7551. /v1/parse/pdf:
  7552. post:
  7553. description: ParsePdf
  7554. parameters:
  7555. - description: Model
  7556. in: formData
  7557. name: model
  7558. required: true
  7559. type: string
  7560. - description: File
  7561. in: formData
  7562. name: file
  7563. required: true
  7564. type: file
  7565. - description: Optional Aiproxy-Channel header
  7566. in: header
  7567. name: Aiproxy-Channel
  7568. type: string
  7569. produces:
  7570. - application/json
  7571. responses:
  7572. "200":
  7573. description: OK
  7574. headers:
  7575. X-RateLimit-Limit-Requests:
  7576. description: X-RateLimit-Limit-Requests
  7577. type: integer
  7578. X-RateLimit-Limit-Tokens:
  7579. description: X-RateLimit-Limit-Tokens
  7580. type: integer
  7581. X-RateLimit-Remaining-Requests:
  7582. description: X-RateLimit-Remaining-Requests
  7583. type: integer
  7584. X-RateLimit-Remaining-Tokens:
  7585. description: X-RateLimit-Remaining-Tokens
  7586. type: integer
  7587. X-RateLimit-Reset-Requests:
  7588. description: X-RateLimit-Reset-Requests
  7589. type: string
  7590. X-RateLimit-Reset-Tokens:
  7591. description: X-RateLimit-Reset-Tokens
  7592. type: string
  7593. schema:
  7594. $ref: '#/definitions/model.ParsePdfResponse'
  7595. security:
  7596. - ApiKeyAuth: []
  7597. summary: ParsePdf
  7598. tags:
  7599. - relay
  7600. /v1/rerank:
  7601. post:
  7602. description: Rerank
  7603. parameters:
  7604. - description: Request
  7605. in: body
  7606. name: request
  7607. required: true
  7608. schema:
  7609. $ref: '#/definitions/model.RerankRequest'
  7610. - description: Optional Aiproxy-Channel header
  7611. in: header
  7612. name: Aiproxy-Channel
  7613. type: string
  7614. produces:
  7615. - application/json
  7616. responses:
  7617. "200":
  7618. description: OK
  7619. headers:
  7620. X-RateLimit-Limit-Requests:
  7621. description: X-RateLimit-Limit-Requests
  7622. type: integer
  7623. X-RateLimit-Limit-Tokens:
  7624. description: X-RateLimit-Limit-Tokens
  7625. type: integer
  7626. X-RateLimit-Remaining-Requests:
  7627. description: X-RateLimit-Remaining-Requests
  7628. type: integer
  7629. X-RateLimit-Remaining-Tokens:
  7630. description: X-RateLimit-Remaining-Tokens
  7631. type: integer
  7632. X-RateLimit-Reset-Requests:
  7633. description: X-RateLimit-Reset-Requests
  7634. type: string
  7635. X-RateLimit-Reset-Tokens:
  7636. description: X-RateLimit-Reset-Tokens
  7637. type: string
  7638. schema:
  7639. $ref: '#/definitions/model.RerankResponse'
  7640. security:
  7641. - ApiKeyAuth: []
  7642. summary: Rerank
  7643. tags:
  7644. - relay
  7645. /v1/responses:
  7646. post:
  7647. description: Create a new response
  7648. parameters:
  7649. - description: Request
  7650. in: body
  7651. name: request
  7652. required: true
  7653. schema:
  7654. $ref: '#/definitions/model.CreateResponseRequest'
  7655. - description: Optional Aiproxy-Channel header
  7656. in: header
  7657. name: Aiproxy-Channel
  7658. type: string
  7659. produces:
  7660. - application/json
  7661. responses:
  7662. "200":
  7663. description: OK
  7664. headers:
  7665. X-RateLimit-Limit-Requests:
  7666. description: X-RateLimit-Limit-Requests
  7667. type: integer
  7668. X-RateLimit-Limit-Tokens:
  7669. description: X-RateLimit-Limit-Tokens
  7670. type: integer
  7671. X-RateLimit-Remaining-Requests:
  7672. description: X-RateLimit-Remaining-Requests
  7673. type: integer
  7674. X-RateLimit-Remaining-Tokens:
  7675. description: X-RateLimit-Remaining-Tokens
  7676. type: integer
  7677. X-RateLimit-Reset-Requests:
  7678. description: X-RateLimit-Reset-Requests
  7679. type: string
  7680. X-RateLimit-Reset-Tokens:
  7681. description: X-RateLimit-Reset-Tokens
  7682. type: string
  7683. schema:
  7684. $ref: '#/definitions/model.Response'
  7685. security:
  7686. - ApiKeyAuth: []
  7687. summary: Create response
  7688. tags:
  7689. - relay
  7690. /v1/responses/{response_id}:
  7691. delete:
  7692. description: Delete a response by ID
  7693. parameters:
  7694. - description: Response ID
  7695. in: path
  7696. name: response_id
  7697. required: true
  7698. type: string
  7699. - description: Optional Aiproxy-Channel header
  7700. in: header
  7701. name: Aiproxy-Channel
  7702. type: string
  7703. produces:
  7704. - application/json
  7705. responses:
  7706. "204":
  7707. description: No Content
  7708. security:
  7709. - ApiKeyAuth: []
  7710. summary: Delete response
  7711. tags:
  7712. - relay
  7713. get:
  7714. description: Get a response by ID
  7715. parameters:
  7716. - description: Response ID
  7717. in: path
  7718. name: response_id
  7719. required: true
  7720. type: string
  7721. - description: Optional Aiproxy-Channel header
  7722. in: header
  7723. name: Aiproxy-Channel
  7724. type: string
  7725. produces:
  7726. - application/json
  7727. responses:
  7728. "200":
  7729. description: OK
  7730. schema:
  7731. $ref: '#/definitions/model.Response'
  7732. security:
  7733. - ApiKeyAuth: []
  7734. summary: Get response
  7735. tags:
  7736. - relay
  7737. /v1/responses/{response_id}/cancel:
  7738. post:
  7739. description: Cancel a response by ID
  7740. parameters:
  7741. - description: Response ID
  7742. in: path
  7743. name: response_id
  7744. required: true
  7745. type: string
  7746. - description: Optional Aiproxy-Channel header
  7747. in: header
  7748. name: Aiproxy-Channel
  7749. type: string
  7750. produces:
  7751. - application/json
  7752. responses:
  7753. "200":
  7754. description: OK
  7755. schema:
  7756. $ref: '#/definitions/model.Response'
  7757. security:
  7758. - ApiKeyAuth: []
  7759. summary: Cancel response
  7760. tags:
  7761. - relay
  7762. /v1/responses/{response_id}/input_items:
  7763. get:
  7764. description: Get input items for a response
  7765. parameters:
  7766. - description: Response ID
  7767. in: path
  7768. name: response_id
  7769. required: true
  7770. type: string
  7771. - description: Optional Aiproxy-Channel header
  7772. in: header
  7773. name: Aiproxy-Channel
  7774. type: string
  7775. produces:
  7776. - application/json
  7777. responses:
  7778. "200":
  7779. description: OK
  7780. schema:
  7781. $ref: '#/definitions/model.InputItemList'
  7782. security:
  7783. - ApiKeyAuth: []
  7784. summary: Get response input items
  7785. tags:
  7786. - relay
  7787. /v1/video/generations/{id}/content/video:
  7788. get:
  7789. description: VideoGenerationsContent
  7790. parameters:
  7791. - description: Request
  7792. in: body
  7793. name: request
  7794. required: true
  7795. schema:
  7796. $ref: '#/definitions/model.VideoGenerationJobRequest'
  7797. - description: Optional Aiproxy-Channel header
  7798. in: header
  7799. name: Aiproxy-Channel
  7800. type: string
  7801. produces:
  7802. - application/json
  7803. responses:
  7804. "200":
  7805. description: video binary
  7806. headers:
  7807. X-RateLimit-Limit-Requests:
  7808. description: X-RateLimit-Limit-Requests
  7809. type: integer
  7810. X-RateLimit-Limit-Tokens:
  7811. description: X-RateLimit-Limit-Tokens
  7812. type: integer
  7813. X-RateLimit-Remaining-Requests:
  7814. description: X-RateLimit-Remaining-Requests
  7815. type: integer
  7816. X-RateLimit-Remaining-Tokens:
  7817. description: X-RateLimit-Remaining-Tokens
  7818. type: integer
  7819. X-RateLimit-Reset-Requests:
  7820. description: X-RateLimit-Reset-Requests
  7821. type: string
  7822. X-RateLimit-Reset-Tokens:
  7823. description: X-RateLimit-Reset-Tokens
  7824. type: string
  7825. schema:
  7826. type: file
  7827. security:
  7828. - ApiKeyAuth: []
  7829. summary: VideoGenerationsContent
  7830. tags:
  7831. - relay
  7832. /v1/video/generations/jobs:
  7833. post:
  7834. description: VideoGenerationsJobs
  7835. parameters:
  7836. - description: Request
  7837. in: body
  7838. name: request
  7839. required: true
  7840. schema:
  7841. $ref: '#/definitions/model.VideoGenerationJobRequest'
  7842. - description: Optional Aiproxy-Channel header
  7843. in: header
  7844. name: Aiproxy-Channel
  7845. type: string
  7846. produces:
  7847. - application/json
  7848. responses:
  7849. "200":
  7850. description: OK
  7851. headers:
  7852. X-RateLimit-Limit-Requests:
  7853. description: X-RateLimit-Limit-Requests
  7854. type: integer
  7855. X-RateLimit-Limit-Tokens:
  7856. description: X-RateLimit-Limit-Tokens
  7857. type: integer
  7858. X-RateLimit-Remaining-Requests:
  7859. description: X-RateLimit-Remaining-Requests
  7860. type: integer
  7861. X-RateLimit-Remaining-Tokens:
  7862. description: X-RateLimit-Remaining-Tokens
  7863. type: integer
  7864. X-RateLimit-Reset-Requests:
  7865. description: X-RateLimit-Reset-Requests
  7866. type: string
  7867. X-RateLimit-Reset-Tokens:
  7868. description: X-RateLimit-Reset-Tokens
  7869. type: string
  7870. schema:
  7871. $ref: '#/definitions/model.VideoGenerationJob'
  7872. security:
  7873. - ApiKeyAuth: []
  7874. summary: VideoGenerationsJobs
  7875. tags:
  7876. - relay
  7877. /v1/video/generations/jobs/{id}:
  7878. get:
  7879. description: VideoGenerationsGetJobs
  7880. parameters:
  7881. - description: Request
  7882. in: body
  7883. name: request
  7884. required: true
  7885. schema:
  7886. $ref: '#/definitions/model.VideoGenerationJobRequest'
  7887. - description: Optional Aiproxy-Channel header
  7888. in: header
  7889. name: Aiproxy-Channel
  7890. type: string
  7891. produces:
  7892. - application/json
  7893. responses:
  7894. "200":
  7895. description: OK
  7896. headers:
  7897. X-RateLimit-Limit-Requests:
  7898. description: X-RateLimit-Limit-Requests
  7899. type: integer
  7900. X-RateLimit-Limit-Tokens:
  7901. description: X-RateLimit-Limit-Tokens
  7902. type: integer
  7903. X-RateLimit-Remaining-Requests:
  7904. description: X-RateLimit-Remaining-Requests
  7905. type: integer
  7906. X-RateLimit-Remaining-Tokens:
  7907. description: X-RateLimit-Remaining-Tokens
  7908. type: integer
  7909. X-RateLimit-Reset-Requests:
  7910. description: X-RateLimit-Reset-Requests
  7911. type: string
  7912. X-RateLimit-Reset-Tokens:
  7913. description: X-RateLimit-Reset-Tokens
  7914. type: string
  7915. schema:
  7916. $ref: '#/definitions/model.VideoGenerationJob'
  7917. security:
  7918. - ApiKeyAuth: []
  7919. summary: VideoGenerationsGetJobs
  7920. tags:
  7921. - relay
  7922. securityDefinitions:
  7923. ApiKeyAuth:
  7924. in: header
  7925. name: Authorization
  7926. type: apiKey
  7927. swagger: "2.0"