langchain
b3efa38c - community[patch]: GigaChat model selection fix (#20988)

Commit
1 year ago
community[patch]: GigaChat model selection fix (#20988) Fixed the error that the model name is never actually put into GigaChat request payload, always defaulting to `GigaChat-Lite`. With this fix, model selection through ```python import os from langchain.chat_models.gigachat import GigaChat chat = GigaChat( name="GigaChat-Pro", # <- HERE!!!!! ... ) ``` should actually work, as intended in [here](https://github.com/langchain-ai/langchain/blob/804390ba4bcc306b90cb6d75b7f01a4231ab6463/libs/community/langchain_community/llms/gigachat.py#L36). --------- Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Author
Parents
Loading