They expect the user to provide a chat, message and session ID in the payload.
Additionally, neither __event_emitter__ nor __event_call__ are available from the pipe() method of regular pipelines: only filter pipelines work.
__event_emitter__ and __event_call__ should ideally be stored somewhere with the session.
Originally created by @michaelpoluektov on GitHub (Jul 9, 2024).
# Bug Report
## Description
The following definitions for `__event_emitter__` and `__event_call__` make no sense:
https://github.com/open-webui/open-webui/blob/24ef5af2a13caccb917e538f536ba03230dac1d6/backend/main.py#L1180
They expect the user to provide a chat, message and session ID in the payload.
Additionally, neither `__event_emitter__` nor `__event_call__` are available from the `pipe()` method of regular pipelines: only filter pipelines work.
`__event_emitter__` and `__event_call__` should ideally be stored somewhere with the session.
Were you able to fix this? I downloaded a function from the functions page (this one), but I'm getting errors that the __event_emitter__ parameter is missing, __model__ is also not being passed to the inlet()
@nomppy commented on GitHub (Jul 30, 2024):
Were you able to fix this? I downloaded a function from [the functions page](https://openwebui.com/functions) ([this one](https://openwebui.com/f/hub/autotool_filter)), but I'm getting errors that the `__event_emitter__` parameter is missing, `__model__` is also not being passed to the `inlet()`
@michaelpoluektov commented on GitHub (Jul 30, 2024):
This was fixed in a PR (I believe merged somewhere around 0.3.8).
I don't know exactly what issue you're facing but assuming you're using the latest version of OWUI I'd try to define your inlets/outlets as:
defoutlet(...,__event_emitter__=None):
Then check that __event_emitter__ is not None before calling it.
Might be the inlets/outlets being called to generate titles and whatnot
@michaelpoluektov commented on GitHub (Jul 30, 2024):
This was fixed in a PR (I believe merged somewhere around 0.3.8).
I don't know exactly what issue you're facing but assuming you're using the latest version of OWUI I'd try to define your inlets/outlets as:
```python
def outlet(..., __event_emitter__=None):
```
Then check that `__event_emitter__` is not None before calling it.
Might be the inlets/outlets being called to generate titles and whatnot
I don't know exactly what issue you're facing but assuming you're using the latest version of OWUI I'd try to define your inlets/outlets as:
I'm silly, I wasn't on the latest version. Building the new image now, thanks for your help!
@nomppy commented on GitHub (Jul 30, 2024):
> I don't know exactly what issue you're facing but assuming you're using the latest version of OWUI I'd try to define your inlets/outlets as:
I'm silly, I wasn't on the latest version. Building the new image now, thanks for your help!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @michaelpoluektov on GitHub (Jul 9, 2024).
Bug Report
Description
The following definitions for
__event_emitter__and__event_call__make no sense:https://github.com/open-webui/open-webui/blob/24ef5af2a13caccb917e538f536ba03230dac1d6/backend/main.py#L1180
They expect the user to provide a chat, message and session ID in the payload.
Additionally, neither
__event_emitter__nor__event_call__are available from thepipe()method of regular pipelines: only filter pipelines work.__event_emitter__and__event_call__should ideally be stored somewhere with the session.@nomppy commented on GitHub (Jul 30, 2024):
Were you able to fix this? I downloaded a function from the functions page (this one), but I'm getting errors that the
__event_emitter__parameter is missing,__model__is also not being passed to theinlet()@michaelpoluektov commented on GitHub (Jul 30, 2024):
This was fixed in a PR (I believe merged somewhere around 0.3.8).
I don't know exactly what issue you're facing but assuming you're using the latest version of OWUI I'd try to define your inlets/outlets as:
Then check that
__event_emitter__is not None before calling it.Might be the inlets/outlets being called to generate titles and whatnot
@nomppy commented on GitHub (Jul 30, 2024):
I'm silly, I wasn't on the latest version. Building the new image now, thanks for your help!