File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ class DiscoverService {
7676 } ;
7777
7878 getAssistantList = async ( params : AssistantQueryParams = { } ) : Promise < AssistantListResponse > => {
79+ await this . injectMPToken ( ) ;
80+
7981 const locale = globalHelpers . getCurrentLanguage ( ) ;
8082 return lambdaClient . market . getAssistantList . query (
8183 {
@@ -126,6 +128,8 @@ class DiscoverService {
126128 } ;
127129
128130 getMcpList = async ( params : McpQueryParams = { } ) : Promise < McpListResponse > => {
131+ await this . injectMPToken ( ) ;
132+
129133 const locale = globalHelpers . getCurrentLanguage ( ) ;
130134 return lambdaClient . market . getMcpList . query ( {
131135 ...params ,
Original file line number Diff line number Diff line change 55} from '@lobehub/market-sdk' ;
66
77import { lambdaClient } from '@/libs/trpc/client' ;
8+ import { discoverService } from '@/services/discover' ;
89import {
910 type AgentForkRequest ,
1011 type AgentForkResponse ,
@@ -241,6 +242,8 @@ export class MarketApiService {
241242 pageSize : number ;
242243 total : number ;
243244 } > {
245+ await discoverService . injectMPToken ( ) ;
246+
244247 return lambdaClient . market . skill . searchSkill . query ( params ) ;
245248 }
246249
You can’t perform that action at this time.
0 commit comments