feat: Removes prompt argument from completion state
This commit removes the prompt argument from the completion state. The argument is deleted from the context after the completion is handled. This prevents unexpected behavior and ensures a cleaner state.
This commit is contained in:
parent
de474e5411
commit
e2de80fd84
2 changed files with 4 additions and 1 deletions
|
|
@ -74,6 +74,7 @@ const PromptsTab = ({
|
|||
},
|
||||
argName,
|
||||
value,
|
||||
promptArgs,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -84,7 +84,9 @@ export function useCompletionState(
|
|||
}));
|
||||
|
||||
try {
|
||||
console.log(state);
|
||||
if (context !== undefined) {
|
||||
delete context[argName];
|
||||
}
|
||||
|
||||
const values = await handleCompletion(
|
||||
ref,
|
||||
|
|
|
|||
Loading…
Reference in a new issue