Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node meta hook/fix server hook bug #344

Merged
merged 13 commits into from
Nov 14, 2024

Conversation

SuperEver
Copy link
Contributor

No description provided.

elif isinstance(module, lazyllm.LazyLLMFlowsBase):
NodeMetaHook.MODULEID_TO_WIDGETID[module._flow_id] = node.id
else:
if not isinstance(module, (lazyllm.ModuleBase, lazyllm.LazyLLMFlowsBase)):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if not 改成if

async def receive_json(data: dict):
print("Received json data:", data)
assert "prompt_tokens" in data
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在主进程里面检查,因为这里检查没用;此外去掉打印

def test_data_reflow_in_server(self):
nodes = [
{
"id": "debug-48f9e95a-e54c-4812-a41b-f61f635816b8-1731324014737",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id和name可读

@wzh1994 wzh1994 merged commit 124ea47 into LazyAGI:main Nov 14, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants