Merge pull request #7338 from etherandrius/ag/sessionsBreakingLocalStorage
Fix: Remove completionOptions and appliedRules from PromptLog
This commit is contained in:
commit
e58b2507d9
5 changed files with 1 additions and 6 deletions
|
|
@ -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
1
core/index.d.ts
vendored
|
|
@ -456,7 +456,6 @@ export type FileSymbolMap = Record<string, SymbolWithRange[]>;
|
|||
export interface PromptLog {
|
||||
modelTitle: string;
|
||||
modelProvider: string;
|
||||
completionOptions: CompletionOptions;
|
||||
prompt: string;
|
||||
completion: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1146,7 +1146,6 @@ export abstract class BaseLLM implements ILLM {
|
|||
modelProvider: this.underlyingProviderName,
|
||||
prompt,
|
||||
completion,
|
||||
completionOptions,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,9 +19,6 @@ async function dudLLMCall(llm: ILLM, messages: ChatMessage[]) {
|
|||
await gen.next();
|
||||
await gen.return({
|
||||
completion: "",
|
||||
completionOptions: {
|
||||
model: "",
|
||||
},
|
||||
modelTitle: "",
|
||||
modelProvider: "",
|
||||
prompt: "",
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue