MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / buildScrubberTranscript

Method buildScrubberTranscript

chat/app.js:5063–5078  ·  view source on GitHub ↗
(messages, mode)

Source from the content-addressed store, hash-verified

5061
5062 if (models.length === 0) {
5063 try {
5064 const fetchedModels = await this.inferenceService.fetchModels(session);
5065 this.modelCatalogsByBackend ||= new Map();
5066 models = this.filterDisabledModels(fetchedModels, session);
5067 this.modelCatalogsByBackend.set(session.inferenceBackend, models);
5068 if (!this.state.modelsBackendId || this.state.modelsBackendId === session.inferenceBackend) this.state.models = models;
5069 } catch (error) {
5070 console.warn('Unable to load models for ticket preflight:', error);
5071 return { tickets: 0, label: 'the selected model' };
5072 }
5073 }
5074
5075 if (this.isCouncilModeActive(session) && this.councilController) {
5076 const entries = this.councilController.resolveModelEntries(session);
5077 if (councilStageEntry) {
5078 const laneEntry = this.councilController.resolveEntryForStage1Entry(
5079 session,
5080 councilStageEntry,
5081 entries

Callers 1

Calls 3

getMessageTextContentMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected