@kenkaiiii/gg-ai 5.75.1 → 5.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4866,10 +4866,11 @@ function registerPalsuProvider(config) {
4866
4866
  },
4867
4867
  state,
4868
4868
  getModel(modelName) {
4869
- if (!modelStates.has(modelName)) {
4870
- modelStates.set(modelName, { responses: [] });
4869
+ let ms = modelStates.get(modelName);
4870
+ if (!ms) {
4871
+ ms = { responses: [] };
4872
+ modelStates.set(modelName, ms);
4871
4873
  }
4872
- const ms = modelStates.get(modelName);
4873
4874
  return {
4874
4875
  setResponses(r) {
4875
4876
  ms.responses.length = 0;