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

Feat/added chattBaiduWenxin chat model #2752

Conversation

Mubashirshariq
Copy link
Contributor

Fixes: #2751
Added ChatBaiduWenxin chat model

@HenryHengZJ
Copy link
Contributor

thank you! some linting issue

@iceycc
Copy link

iceycc commented Jul 3, 2024

Thanks for you code, I used it。but It seems to require two keys, and need streaming。 like:

        const obj: Partial<ChatBaiduWenxin> = {
            streaming: true,
            baiduApiKey,
            baiduSecretKey,
            modelName,
            temperature: temperature ? parseFloat(temperature) : undefined
        }

    }

@Mubashirshariq
Copy link
Contributor Author

@iceycc i have done the required changes

@HenryHengZJ HenryHengZJ merged commit dfdeb02 into FlowiseAI:main Jul 5, 2024
2 checks passed
@iceycc
Copy link

iceycc commented Jul 12, 2024

In langchanJs , Wenxin becomes Qianfan, here , and then I refer to yours and it says an error : stream.getReader is not a function。

See details here:
#2786

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.

[FEATURE] Can ChatAlibabaTongyi or ChatBaiduWenxin be added to Chat Models?
3 participants