File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
apps/dokploy/server/api/routers Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,40 @@ export const aiRouter = createTRPCRouter({
6868 { headers : { } } ,
6969 ) ;
7070 break ;
71+ case "perplexity" :
72+ // Perplexity doesn't have a /models endpoint, return hardcoded list
73+ return [
74+ {
75+ id : "sonar-deep-research" ,
76+ object : "model" ,
77+ created : Date . now ( ) ,
78+ owned_by : "perplexity" ,
79+ } ,
80+ {
81+ id : "sonar-reasoning-pro" ,
82+ object : "model" ,
83+ created : Date . now ( ) ,
84+ owned_by : "perplexity" ,
85+ } ,
86+ {
87+ id : "sonar-reasoning" ,
88+ object : "model" ,
89+ created : Date . now ( ) ,
90+ owned_by : "perplexity" ,
91+ } ,
92+ {
93+ id : "sonar-pro" ,
94+ object : "model" ,
95+ created : Date . now ( ) ,
96+ owned_by : "perplexity" ,
97+ } ,
98+ {
99+ id : "sonar" ,
100+ object : "model" ,
101+ created : Date . now ( ) ,
102+ owned_by : "perplexity" ,
103+ } ,
104+ ] as Model [ ] ;
71105 default :
72106 if ( ! input . apiKey )
73107 throw new TRPCError ( {
You can’t perform that action at this time.
0 commit comments