@@ -39,7 +39,7 @@ export class ProductionEndpointProvider implements IEndpointProvider {
39
39
@ICAPIClientService capiClientService : ICAPIClientService ,
40
40
@IFetcherService fetcher : IFetcherService ,
41
41
@IExperimentationService private readonly _expService : IExperimentationService ,
42
- @ITelemetryService telemetryService : ITelemetryService ,
42
+ @ITelemetryService private readonly _telemetryService : ITelemetryService ,
43
43
@ILogService private readonly _logService : ILogService ,
44
44
@IConfigurationService private readonly _configService : IConfigurationService ,
45
45
@IInstantiationService private readonly _instantiationService : IInstantiationService ,
@@ -57,7 +57,7 @@ export class ProductionEndpointProvider implements IEndpointProvider {
57
57
this . _expService ,
58
58
_envService ,
59
59
_authService ,
60
- telemetryService ,
60
+ this . _telemetryService ,
61
61
_logService ,
62
62
_instantiationService ,
63
63
) ;
@@ -191,6 +191,21 @@ export class ProductionEndpointProvider implements IEndpointProvider {
191
191
const experimentModelConfig = getCustomDefaultModelExperimentConfig ( this . _expService ) ;
192
192
193
193
for ( let model of models ) {
194
+
195
+ if ( model . id === experimentModelConfig ?. id ) {
196
+ /* __GDPR__
197
+ "custommodel.found" : {
198
+ "owner": "karthiknadig",
199
+ "comment": "Reports that an experimental model was in the list of models.",
200
+ "model": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Model in found list." }
201
+ }
202
+ */
203
+ this . _telemetryService . sendTelemetryEvent ( 'custommodel.found' , { microsoft : true , github : false } , {
204
+ model : model . id ,
205
+ } ) ;
206
+ // The above telemetry is needed for easier filtering.
207
+ }
208
+
194
209
model = applyExperimentModifications ( model , experimentModelConfig ) ?? model ;
195
210
const chatEndpoint = this . getOrCreateChatEndpointInstance ( model ) ;
196
211
chatEndpoints . push ( chatEndpoint ) ;
0 commit comments