Skip to content

Commit

Permalink
PMix: renames
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Dec 31, 2024
1 parent 95e988d commit aab84f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/modules/persona/pmix/pmix.parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ interface PVariableDefinition {
pattern?: RegExp; // for variables that need regex replacement (e.g., {{LLM.LowRL:...}})

// function to generate the replacement text
replace: (context: DPromptMixerContext) => string | null;
replace: (context: PPromptMixerContext) => string | null;
}

export interface DPromptMixerContext {
export interface PPromptMixerContext {
assistantLlmId?: DLLMId;
deviceIsDesktop?: boolean;
deviceBrowserLang?: string;
Expand All @@ -44,7 +44,7 @@ export interface DPromptMixerContext {
customFields?: Record<string, string>;
}

// export type DPromptVariable = keyof typeof PromptVariableRegistry;
export type PPromptVariable = keyof typeof PromptVariableRegistry;


// Registry
Expand Down
4 changes: 2 additions & 2 deletions src/modules/persona/pmix/pmix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { BrowserLang, Is } from '~/common/util/pwaUtils';

import { getChatAutoAI } from '../../../apps/chat/store-app-chat';

import { DPromptMixerContext, PromptVariableRegistry } from './pmix.parameters';
import { PPromptMixerContext, PromptVariableRegistry } from './pmix.parameters';


export function replacePromptVariables(template: string, context: DPromptMixerContext): string {
export function replacePromptVariables(template: string, context: PPromptMixerContext): string {
let mixed = template;

// auto-append Auto-Suggest features if enabled
Expand Down

0 comments on commit aab84f6

Please sign in to comment.