models, skip itï¼‰Deploy your model in Qianfan Console, get your own customized deploy endpoint.Set up the field called endpoint in the initialization:chatBloom = QianfanChatEndpoint(                            streaming=True,                             model="BLOOMZ-7B",                            )res = chatBloom([HumanMessage(content="hi")])print(res)    [INFO] [09-15 20:00:50] logging.py:55 [t:139698882193216]: requesting llm api endpoint: /chat/bloomz_7b1    content='ä½ å¥½ï¼�å¾ˆé«˜å…´è§�åˆ°ä½ ã€‚' additional_kwargs={} example=FalseModel Params:â€‹For now, only ERNIE-Bot and ERNIE-Bot-turbo support model params below, we might support more models in the future.temperaturetop_ppenalty_scoreres = chat.stream([HumanMessage(content="hi")], **{'top_p': 0.4, 'temperature': 0.1, 'penalty_score': 1})for r in res:    print(r)    [INFO] [09-15 20:00:57] logging.py:55 [t:139698882193216]: requesting llm api endpoint: /chat/eb-instant    content='æ‚¨å¥½ï¼Œæ‚¨ä¼¼ä¹�è¾“å…¥' additional_kwargs={} example=False    content='äº†ä¸€ä¸ªæ–‡æœ¬å­—ç¬¦ä¸²ï¼Œä½†å¹¶æ²¡æœ‰ç»™å‡ºå…·ä½“çš„é—®é¢˜æˆ–åœºæ™¯ã€‚' additional_kwargs={} example=False    content='å¦‚æ�œæ‚¨èƒ½æ��ä¾›æ›´å¤šä¿¡æ�¯ï¼Œæˆ‘å�¯ä»¥æ›´å¥½åœ°å›�ç­”æ‚¨çš„é—®é¢˜ã€‚' additional_kwargs={} example=False    content='' additional_kwargs={} example=FalsePreviousBaichuan ChatNextBedrock ChatAPI InitializationCurrent supported models:Use different models in QianfanModel Params:CommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright Â© 2023 LangChain, Inc.
Baidu AI Cloud Qianfan Platform is a one-stop large model development and service operation platform for enterprise developers. Qianfan not only provides including the model of Wenxin Yiyan (ERNIE-Bot) and the third-party open-source models, but also provides various AI development tools and the whole set of development environment, which facilitates customers to use and develop large model applications easily.
Baidu AI Cloud Qianfan Platform is a one-stop large model development and service operation platform for enterprise developers. Qianfan not only provides including the model of Wenxin Yiyan (ERNIE-Bot) and the third-party open-source models, but also provides various AI development tools and the whole set of development environment, which facilitates customers to use and develop large model applications easily. ->: models, skip itï¼‰Deploy your model in Qianfan Console, get your own customized deploy endpoint.Set up the field called endpoint in the initialization:chatBloom = QianfanChatEndpoint(                            streaming=True,                             model="BLOOMZ-7B",                            )res = chatBloom([HumanMessage(content="hi")])print(res)    [INFO] [09-15 20:00:50] logging.py:55 [t:139698882193216]: requesting llm api endpoint: /chat/bloomz_7b1    content='ä½ å¥½ï¼�å¾ˆé«˜å…´è§�åˆ°ä½ ã€‚' additional_kwargs={} example=FalseModel Params:â€‹For now, only ERNIE-Bot and ERNIE-Bot-turbo support model params below, we might support more models in the future.temperaturetop_ppenalty_scoreres = chat.stream([HumanMessage(content="hi")], **{'top_p': 0.4, 'temperature': 0.1, 'penalty_score': 1})for r in res:    print(r)    [INFO] [09-15 20:00:57] logging.py:55 [t:139698882193216]: requesting llm api endpoint: /chat/eb-instant    content='æ‚¨å¥½ï¼Œæ‚¨ä¼¼ä¹�è¾“å…¥' additional_kwargs={} example=False    content='äº†ä¸€ä¸ªæ–‡æœ¬å­—ç¬¦ä¸²ï¼Œä½†å¹¶æ²¡æœ‰ç»™å‡ºå…·ä½“çš„é—®é¢˜æˆ–åœºæ™¯ã€‚' additional_kwargs={} example=False    content='å¦‚æ�œæ‚¨èƒ½æ��ä¾›æ›´å¤šä¿¡æ�¯ï¼Œæˆ‘å�¯ä»¥æ›´å¥½åœ°å›�ç­”æ‚¨çš„é—®é¢˜ã€‚' additional_kwargs={} example=False    content='' additional_kwargs={} example=FalsePreviousBaichuan ChatNextBedrock ChatAPI InitializationCurrent supported models:Use different models in QianfanModel Params:CommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright Â© 2023 LangChain, Inc.