langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
84.83k stars 13.11k forks source link

langchain_community: GigaChat model selection fix #20988

Closed BlackSamorez closed 2 weeks ago

BlackSamorez commented 2 weeks ago

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

import os
from langchain.chat_models.gigachat import GigaChat

chat = GigaChat(
    name="GigaChat-Pro", # <- HERE!!!!!
    ...
)

should actually work, as intended in here.

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **langchain** | ⬜️ Ignored ([Inspect](https://vercel.com/langchain/langchain/Gm2V6WZYwdpTaTEftfYA3MChG7bk)) | [Visit Preview](https://langchain-git-fork-blacksamorez-master-langchain.vercel.app) | | Apr 29, 2024 4:08pm |