Giter Site home page Giter Site logo

Comments (7)

lgrammel avatar lgrammel commented on May 23, 2024

Thanks for the bug report. I suspect it is because I switched bundling to tsup. Can you share some code that can help me reproduce the issue?

from modelfusion.

lgrammel avatar lgrammel commented on May 23, 2024

@jakedetels I did some digging and it might be related to jest specifically (see https://jestjs.io/docs/ecmascript-modules ). Are you using jest by any chance? Does this also happen outside of tests?

from modelfusion.

lgrammel avatar lgrammel commented on May 23, 2024

@jakedetels can you try https://github.com/lgrammel/modelfusion/releases/tag/v0.135.1 ?

It should fix the issue. If you still run into it, please re-open.

from modelfusion.

jakedetels avatar jakedetels commented on May 23, 2024

@lgrammel, thanks for the quick attention on this. I tested with 0.135.1, and confirm that it fixed the previously reported issue and my tests are now passing again. However, the patch release introduced a bug/side effect related to the schema of the event objects that are emitted (which I leverage for logging purposes). In 133, event.input was an array of messages (see first screenshot). Now in 0.135.1, to access the same array that was at event.input earlier, code must be revised as event.input.input (see second screenshot). How do you advise proceeding? Is the new event object schema locked in, or will you restore to the pre-v0.135.1 version?

0.133.0
image

0.135.1
image

from modelfusion.

lgrammel avatar lgrammel commented on May 23, 2024

@lgrammel, thanks for the quick attention on this. I tested with 0.135.1, and confirm that it fixed the previously reported issue and my tests are now passing again. However, the patch release introduced a bug/side effect related to the schema of the event objects that are emitted (which I leverage for logging purposes). In 133, event.input was an array of messages (see first screenshot). Now in 0.135.1, to access the same array that was at event.input earlier, code must be revised as event.input.input (see second screenshot). How do you advise proceeding? Is the new event object schema locked in, or will you restore to the pre-v0.135.1 version?

0.133.0 image

0.135.1 image

@jakedetels this is expected (a result of introducing prompt functions). In general, the event structure is an area that will likely change a bit more going forward. Are you using the events / input information or is this caused by snapshot tests?

from modelfusion.

jakedetels avatar jakedetels commented on May 23, 2024

@lgrammel, I've been using the event object within a logging service I'm using. (Issue is unrelated to snapshot testing.) No worries if the event schema will change a bit further, but it would be nice to lock things in at some point soon, since the event object is part of MF's public API for function observers.

from modelfusion.

lgrammel avatar lgrammel commented on May 23, 2024

@jakedetels totally - it's good to know that you are using the event, so I'll keep that in mind when there are updates.

from modelfusion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.