langchain/libs/partners
ccurme 181dfef118
core, standard tests, partner packages: add test for model params (#21677)
1. Adds `.get_ls_params` to BaseChatModel which returns
```python
class LangSmithParams(TypedDict, total=False):
    ls_provider: str
    ls_model_name: str
    ls_model_type: Literal["chat"]
    ls_temperature: Optional[float]
    ls_max_tokens: Optional[int]
    ls_stop: Optional[List[str]]
```
by default it will only return
```python
{ls_model_type="chat", ls_stop=stop}
```

2. Add these params to inheritable metadata in
`CallbackManager.configure`

3. Implement `.get_ls_params` and populate all params for Anthropic +
all subclasses of BaseChatOpenAI

Sample trace:
https://smith.langchain.com/public/d2962673-4c83-47c7-b51e-61d07aaffb1b/r

**OpenAI**:
<img width="984" alt="Screenshot 2024-05-17 at 10 03 35 AM"
src="https://github.com/langchain-ai/langchain/assets/26529506/2ef41f74-a9df-4e0e-905d-da74fa82a910">

**Anthropic**:
<img width="978" alt="Screenshot 2024-05-17 at 10 06 07 AM"
src="https://github.com/langchain-ai/langchain/assets/26529506/39701c9f-7da5-4f1a-ab14-84e9169d63e7">

**Mistral** (and all others for which params are not yet populated):
<img width="977" alt="Screenshot 2024-05-17 at 10 08 43 AM"
src="https://github.com/langchain-ai/langchain/assets/26529506/37d7d894-fec2-4300-986f-49a5f0191b03">
2024-05-17 13:51:26 -04:00
..
ai21 core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
airbyte airbyte[patch]: airbyte-cdk compatible pydantic versions (#21738) 2024-05-15 19:13:25 -07:00
anthropic core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
azure-dynamic-sessions docs: add aca-ds (#21746) 2024-05-16 08:52:07 +00:00
chroma multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
exa multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
fireworks core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
groq core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
huggingface docs: huggingface package (#21645) 2024-05-14 03:17:40 +00:00
ibm ibm[patch]: release 0.1.7 (#21737) 2024-05-15 19:10:15 -07:00
mistralai core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
mongodb multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
nomic multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
openai core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
pinecone pinecone: bump min core version (#21742) 2024-05-15 19:31:43 -07:00
prompty multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
qdrant multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00
robocorp langchain-robocorp[minor]: Enable passing additional headers to the action server. (#21809) 2024-05-17 15:08:48 +00:00
together core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
upstage core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
voyageai multiple: releases with relaxed core dep (#21724) 2024-05-15 19:29:35 +00:00