Merge pull request #7338 from etherandrius/ag/sessionsBreakingLocalStorage

Fix: Remove completionOptions and appliedRules from PromptLog
This commit is contained in:
Dallin Romney 2025-08-27 13:17:14 -07:00 • committed by GitHub
commit e58b2507d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 1 additions and 6 deletions

View file

@ -8,7 +8,6 @@ const INFINITE_STREAM_SAFETY = 0.9;
const DUD_PROMPT_LOG: PromptLog = {
modelTitle: "",
modelProvider: "",
completionOptions: { model: "" },
prompt: "",
completion: "",
};

1
core/index.d.ts vendored
View file

@ -456,7 +456,6 @@ export type FileSymbolMap = Record<string, SymbolWithRange[]>;
export interface PromptLog {
modelTitle: string;
modelProvider: string;
completionOptions: CompletionOptions;
prompt: string;
completion: string;
}

View file

@ -1146,7 +1146,6 @@ export abstract class BaseLLM implements ILLM {
modelProvider: this.underlyingProviderName,
prompt,
completion,
completionOptions,
};
}

View file

@ -19,9 +19,6 @@ async function dudLLMCall(llm: ILLM, messages: ChatMessage[]) {
await gen.next();
await gen.return({
completion: "",
completionOptions: {
model: "",
},
modelTitle: "",
modelProvider: "",
prompt: "",

View file

@ -26,6 +26,7 @@ export function FeedbackButtons({ item }: FeedbackButtonsProps) {
name: "chatFeedback",
data: {
...logData,
completionOptions: {}, // TODO delete completionOptions from @continuedev/config-yaml
modelProvider: modelProvider || "unknown",
modelName: modelTitle,
modelTitle: modelTitle,