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

[Enhancement]:llm('hello')这样调用会执行langchain中LLM类的_call()方法,但是它只能return 一个str类型 #436

Open
CyanMystery opened this issue Jun 20, 2023 · 2 comments

Comments

@CyanMystery
Copy link

What would you like to be added?

我想它应该支持流式输出 使用yield返回,因此,处理llm('hello')这样调用之外,最好能使用llm.custom_func()调用

Why is this needed?

支持流式输出

Anything else?

No response

@CyanMystery CyanMystery changed the title [Enhancement]:llm('hello')这样调用会执行_call()方法,但是它只能returern 一个str类型 [Enhancement]:llm('hello')这样调用会执行_call()方法,但是它只能return 一个str类型 Jun 20, 2023
@CyanMystery CyanMystery changed the title [Enhancement]:llm('hello')这样调用会执行_call()方法,但是它只能return 一个str类型 [Enhancement]:llm('hello')这样调用会执行llm的_call()方法,但是它只能return 一个str类型 Jun 20, 2023
@CyanMystery CyanMystery changed the title [Enhancement]:llm('hello')这样调用会执行llm的_call()方法,但是它只能return 一个str类型 [Enhancement]:llm('hello')这样调用会执行langchain中LLM类的_call()方法,但是它只能return 一个str类型 Jun 20, 2023
@SimFG
Copy link
Collaborator

SimFG commented Jun 20, 2023

@jiangbossB It's a great advice!

@SimFG
Copy link
Collaborator

SimFG commented Jun 26, 2023

If you want to support streaming output, this should be supported in langchain, such as returning a generator

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

No branches or pull requests

2 participants