Comments (7)
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.
@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.
@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.
@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?
from modelfusion.
@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 atevent.input
earlier, code must be revised asevent.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?
@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.
@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.
@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)
- Caching fails on subsequent invocations HOT 3
- Cohere custom model and chat api support
- TurboPuff Vector DB support
- Postgres/Knex Vector DB support with pgvector HOT 1
- Perplexity LLM exploration and docs page (OpenAI compatible should work) - they have online LLMs which are cool
- LocalAI exploration & docs page (OpenAI)
- Fireworks / Anyscale / Together docs pages (for their API configs)
- Google Gemini exploration HOT 3
- Add OpenChat prompt template
- introduce classify model function
- explore img + text -> image models / prompts
- move out openai cost calc from modelfusion and modelfusion/experimental into a standalone pkg that can also be used w/o modelfusion
- explore if there is a good local TTS that could be integrated
- explore variable output parsers, e.g. for list (when generated using GBNF grammar)
- BUG: Ollama response `prompt_eval_count` is required field. HOT 1
- Tools do not work with ollama HOT 1
- can't connect to https://api.openai.com:443/v1/audio/transcriptions HOT 4
- First parameter has member `readable` when running generate text on AWS Lambda. HOT 3
- Ollama Mistral .withPromptTemplate Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modelfusion.