ccurme
bbc50f65e7
anthropic[patch]: release 0.3.4 ( #29399 )
2025-01-23 23:55:58 +00:00
ccurme
ed797e17fb
anthropic[patch]: always return content blocks if citations are generated ( #29398 )
...
We currently return string (and therefore no content blocks / citations)
if the response is of the form
```
[
{"text": "a claim", "citations": [...]},
]
```
There are other cases where we do return citations as-is:
```
[
{"text": "a claim", "citations": [...]},
{"text": "some other text"},
{"text": "another claim", "citations": [...]},
]
```
Here we update to return content blocks including citations in the first
case as well.
2025-01-23 18:47:23 -05:00
ZhangShenao
33e22ccb19
[Doc] Improve api doc ( #29324 )
...
- Fix doc description
- Add static method decorator
2025-01-21 09:16:08 -05:00
ccurme
184ea8aeb2
anthropic[patch]: update tool choice type ( #29276 )
2025-01-17 15:26:33 -05:00
ccurme
ac52021097
anthropic[patch]: release 0.3.2 ( #29275 )
2025-01-17 19:48:31 +00:00
ccurme
c616b445f2
anthropic[patch]: support parallel_tool_calls
( #29257 )
...
Need to:
- Update docs
- Decide if this is an explicit kwarg of bind_tools
- Decide if this should be in standard test with flag for supporting
2025-01-17 19:41:41 +00:00
Erick Friis
c55af44711
anthropic: pydantic mypy plugin ( #29144 )
2025-01-13 15:32:40 -08:00
Erick Friis
0a54aedb85
anthropic: pdf integration test ( #29142 )
2025-01-10 21:56:31 +00:00
Erick Friis
fcc9cdd100
multiple: disable socket for unit tests ( #29080 )
2025-01-07 15:31:50 -08:00
Erick Friis
187131c55c
Revert "integrations[patch]: remove non-required chat param defaults" ( #29048 )
...
Reverts langchain-ai/langchain#26730
discuss best way to release default changes (esp openai temperature)
2025-01-06 14:45:34 -08:00
Bagatur
3d7ae8b5d2
integrations[patch]: remove non-required chat param defaults ( #26730 )
...
anthropic:
- max_retries
openai:
- n
- temperature
- max_retries
fireworks
- temperature
groq
- n
- max_retries
- temperature
mistral
- max_retries
- timeout
- max_concurrent_requests
- temperature
- top_p
- safe_mode
---------
Co-authored-by: Erick Friis <erick@langchain.dev>
2025-01-06 22:26:22 +00:00
Bagatur
edbe7d5f5e
core,anthropic[patch]: fix with_structured_output typing ( #28950 )
2024-12-28 15:46:51 -05:00
Erick Friis
ff7b01af88
anthropic: less pydantic for client ( #28823 )
2024-12-19 08:00:02 -08:00
Erick Friis
f1d783748a
anthropic: sdk bump ( #28820 )
2024-12-19 15:39:21 +00:00
Erick Friis
4eb8bf7793
partners/anthropic: release 0.3.1 ( #28801 )
2024-12-18 22:45:38 +00:00
ccurme
b745281eec
anthropic[patch]: increase timeouts for integration tests ( #28767 )
...
Some tests consistently ran into the 10s limit in CI.
2024-12-17 15:47:17 +00:00
Erick Friis
c5acedddc2
anthropic: timeout in tests (10s) ( #28488 )
2024-12-04 16:03:38 -08:00
Erick Friis
d1108607f4
multiple: push deprecation removals to 1.0 ( #28236 )
2024-11-20 19:56:29 -08:00
Erick Friis
0dbaf05bb7
standard-tests: rename langchain_standard_tests to langchain_tests, release 0.3.2 ( #28203 )
2024-11-18 19:10:39 -08:00
Erick Friis
6d2004ee7d
multiple: langchain-standard-tests -> langchain-tests ( #28139 )
2024-11-15 11:32:04 -08:00
ccurme
00e7b2dada
anthropic[patch]: add examples to API ref ( #28065 )
2024-11-12 20:17:02 +00:00
ccurme
2898b95ca7
anthropic[major]: release 0.3.0 ( #28063 )
2024-11-12 14:58:00 -05:00
ccurme
1538ee17f9
anthropic[major]: support python 3.13 ( #27916 )
...
Last week Anthropic released version 0.39.0 of its python sdk, which
enabled support for Python 3.13. This release deleted a legacy
`client.count_tokens` method, which we currently access during init of
the `Anthropic` LLM. Anthropic has replaced this functionality with the
[client.beta.messages.count_tokens()
API](https://github.com/anthropics/anthropic-sdk-python/pull/726 ).
To enable support for `anthropic >= 0.39.0` and Python 3.13, here we
drop support for the legacy token counting method, and add support for
the new method via `ChatAnthropic.get_num_tokens_from_messages`.
To fully support the token counting API, we update the signature of
`get_num_tokens_from_message` to accept tools everywhere.
---------
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
2024-11-12 14:31:07 -05:00
ccurme
a747dbd24b
anthropic[patch]: remove retired model from tests ( #27965 )
...
`claude-instant` was [retired
yesterday](https://docs.anthropic.com/en/docs/resources/model-deprecations ).
2024-11-07 16:16:29 +00:00
Bagatur
06420de2e7
integrations[patch]: bump core to 0.3.15 ( #27805 )
2024-10-31 11:27:05 -07:00
Bagatur
6691202998
anthropic[patch]: allow multiple sys not at start ( #27725 )
2024-10-30 23:56:47 +00:00
Bagatur
a4392b070d
core[patch]: add convert_to_openai_messages util ( #27263 )
...
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-10-16 17:10:10 +00:00
Erick Friis
92ae61bcc8
multiple: rely on asyncio_mode auto in tests ( #27200 )
2024-10-15 16:26:38 +00:00
William FH
0a3e089827
[Anthropic] Shallow Copy ( #27105 )
...
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-10-15 15:50:48 +00:00
Bagatur
38099800cc
docs: fix anthropic max_tokens docstring ( #27166 )
2024-10-07 16:51:42 +00:00
Bagatur
06ce5d1d5c
anthropic[patch]: Release 0.2.3 ( #27126 )
2024-10-04 22:38:03 +00:00
Bagatur
0b8416bd2e
anthropic[patch]: fix input_tokens when cached ( #27125 )
2024-10-04 22:35:51 +00:00
Bagatur
bd5b335cb4
standard-tests[patch]: fix oai usage metadata test ( #27122 )
2024-10-04 20:00:48 +00:00
Bagatur
414fe16071
anthropic[patch]: Release 0.2.2 ( #27118 )
2024-10-04 11:53:53 -07:00
Bagatur
1e768a9ec7
anthropic[patch]: correctly handle tool msg with empty list ( #27109 )
2024-10-04 11:30:50 -07:00
Bagatur
4935a14314
core,integrations[minor]: Dont error on fields in model_kwargs ( #27110 )
...
Given the current erroring behavior, every time we've moved a kwarg from
model_kwargs and made it its own field that was a breaking change.
Updating this behavior to support the old instantiations /
serializations.
Assuming build_extra_kwargs was not something that itself is being used
externally and needs to be kept backwards compatible
2024-10-04 11:30:27 -07:00
Bagatur
0495b7f441
anthropic[patch]: add usage_metadata details ( #27087 )
...
fixes https://github.com/langchain-ai/langchain/pull/27087
2024-10-04 08:46:49 -07:00
Bagatur
1a62f9850f
anthropic[patch]: Release 0.2.1 ( #26592 )
2024-09-17 14:44:21 -07:00
Bagatur
5ced41bf50
anthropic[patch]: fix tool call and tool res image_url handling ( #26587 )
...
Co-authored-by: ccurme <chester.curme@gmail.com>
2024-09-17 14:30:07 -07:00
Bagatur
97b05d70e6
docs: anthropic api ref nit ( #26591 )
2024-09-17 20:39:53 +00:00
Erick Friis
832bc834b1
partners/anthropic: release 0.2.0 ( #26469 )
...
0.3.0 version was a mistake! not released - bumping version back to
0.2.0 here
2024-09-13 22:47:09 +00:00
Erick Friis
6997731729
partners/anthropic: release 0.3.0 ( #26466 )
2024-09-13 22:44:11 +00:00
Erick Friis
c2a3021bb0
multiple: pydantic 2 compatibility, v0.3 ( #26443 )
...
Signed-off-by: ChengZi <chen.zhang@zilliz.com>
Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Dan O'Donovan <dan.odonovan@gmail.com>
Co-authored-by: Tom Daniel Grande <tomdgrande@gmail.com>
Co-authored-by: Grande <Tom.Daniel.Grande@statsbygg.no>
Co-authored-by: Bagatur <baskaryan@gmail.com>
Co-authored-by: ccurme <chester.curme@gmail.com>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: Tomaz Bratanic <bratanic.tomaz@gmail.com>
Co-authored-by: ZhangShenao <15201440436@163.com>
Co-authored-by: Friso H. Kingma <fhkingma@gmail.com>
Co-authored-by: ChengZi <chen.zhang@zilliz.com>
Co-authored-by: Nuno Campos <nuno@langchain.dev>
Co-authored-by: Morgante Pell <morgantep@google.com>
2024-09-13 14:38:45 -07:00
Bagatur
3ec93c2817
standard-tests[patch]: add Ser/Des test
2024-09-04 10:24:06 -07:00
Christophe Bornet
038c287b3a
all: Improve make lint command ( #25344 )
...
* Removed `ruff check --select I` as `I` is already selected and checked
in the main `ruff check` command
* Added checks for non-empty `PYTHON_FILES`
* Run `ruff check` only on `PYTHON_FILES`
Co-authored-by: Erick Friis <erick@langchain.dev>
2024-08-23 18:23:52 -07:00
ccurme
b83f1eb0d5
core, partners: implement standard tracing params for LLMs ( #25410 )
2024-08-16 13:18:09 -04:00
Eugene Yurtsev
e18511bb22
core[minor], anthropic[patch]: Upgrade @root_validator usage to be consistent with pydantic 2 ( #25457 )
...
anthropic: Upgrade `@root_validator` usage to be consistent with
pydantic 2
core: support looking up multiple keys from env in from_env factory
2024-08-15 20:09:34 +00:00
Bagatur
eec7bb4f51
anthropic[patch]: Release 0.1.23 ( #25394 )
2024-08-14 09:03:39 -07:00
ZhangShenao
2c3e3dc6b1
patch[Partners] Unified fix of incorrect variable declarations in all check_imports ( #25014 )
...
There are some incorrect declarations of variable `has_failure` in
check_imports. The purpose of this PR is to uniformly fix these errors.
2024-08-03 13:49:41 -04:00
Bagatur
752a71b688
integrations[patch]: release model packages ( #24900 )
2024-07-31 20:48:20 +00:00