mirror of https://github.com/hwchase17/langchain
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](804390ba4b/libs/community/langchain_community/llms/gigachat.py (L36)
).
---------
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
pull/21033/head
parent
3331865f6b
commit
b3efa38cc0
Loading…
Reference in New Issue