Commit Graph

14152 Commits

Author SHA1 Message Date
Mason Daugherty
624afb174e ss 2025-08-26 21:56:49 -04:00
Mason Daugherty
419450df98 . 2025-08-26 21:53:42 -04:00
Mason Daugherty
8f3674cae3 Merge branch 'cc/1.0/standard_content' into mdrxy/call-version 2025-08-26 20:26:57 -04:00
Mason Daugherty
313f5f2438 . 2025-08-26 20:25:47 -04:00
Mason Daugherty
32941d6ec5 . 2025-08-26 20:25:09 -04:00
Mason Daugherty
8a14148336 . 2025-08-26 19:55:32 -04:00
ccurme
2d450d4d3b fix(core): (v1) finish test (#32701) 2025-08-26 18:03:47 -04:00
Mason Daugherty
e49156e63f chore: rfc to use .text instead of .text() (#32699) 2025-08-26 16:54:04 -04:00
Mason Daugherty
04bcccf2fe Merge branch 'cc/1.0/standard_content' of github.com:langchain-ai/langchain into mdrxy/call-version 2025-08-26 16:43:15 -04:00
Mason Daugherty
18d1cf236e . 2025-08-26 16:42:58 -04:00
ccurme
447db13473 feat(openai): (v1) support content_blocks on legacy v0 responses API format (#32700) 2025-08-26 16:33:59 -04:00
Mason Daugherty
fa5d49f7b6 Merge branch 'cc/1.0/standard_content' of github.com:langchain-ai/langchain into mdrxy/call-version 2025-08-26 16:04:21 -04:00
Mason Daugherty
395515762e Merge branch 'wip-v1.0' into cc/1.0/standard_content 2025-08-26 15:52:11 -04:00
Mason Daugherty
a2322f68ba Merge branch 'master' into wip-v1.0 2025-08-26 15:51:57 -04:00
Mason Daugherty
3d08b6bd11 chore: adress pytest-asyncio deprecation warnings + other nits (#32696)
amongst some linting imcompatible rules
2025-08-26 15:51:38 -04:00
Matthew Farrellee
f2dcdae467 fix(standard-tests): update function_args to match my_adder_tool param types (#32689)
**Description:**

https://api.llama.com implements strong type checking, which results in
a false negative.

with type mismatch (expected integer, received string) -

```
$ curl -X POST "https://api.llama.com/compat/v1/chat/completions" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
 "model": "Llama-3.3-70B-Instruct",
 "messages": [
     {"role": "user", "content": "What is 1 + 2"},
     {"role": "assistant", "content": "", "tool_calls": [{"id": "abc123", "type": "function", "function": {"name": "my_adder_tool", "arguments": "{\"a\": \"1\", \"b\": \"2\"}"}}]},
     {"role": "tool", "tool_call_id": "abc123", "content": "{\"result\": 3}"}
 ],
 "tools": [{"type": "function", "function": {"name": "my_adder_tool", "description": "Sum two integers", "parameters": {"properties": {"a": {"type": "integer"}, "b": {"type": "integer"}}, "required": ["a", "b"], "type": "object"}}}]
}'

{"title":"Bad request","detail":"Unexpected param value `a`: \"1\"","status":400}
```

with correct type -

```
$ curl -X POST "https://api.llama.com/compat/v1/chat/completions" \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
 "model": "Llama-3.3-70B-Instruct",
 "messages": [
     {"role": "user", "content": "What is 1 + 2"},
     {"role": "assistant", "content": "", "tool_calls": [{"id": "abc123", "type": "function", "function": {"name": "my_adder_tool", "arguments": "{\"a\": 1, \"b\": 2}"}}]},
     {"role": "tool", "tool_call_id": "abc123", "content": "{\"result\": 3}"}
 ],
 "tools": [{"type": "function", "function": {"name": "my_adder_tool", "description": "Sum two integers", "parameters": {"properties": {"a": {"type": "integer"}, "b": {"type": "integer"}}, "required": ["a", "b"], "type": "object"}}}]
}'

{"id":"AhMwBbuaa5payFr_xsOHzxX","model":"Llama-3.3-70B-Instruct","choices":[{"finish_reason":"stop","index":0,"message":{"refusal":"","role":"assistant","content":"The result of 1 + 2 is 3.","id":"AhMwBbuaa5payFr_xsOHzxX"},"logprobs":null}],"created":1756167668,"object":"chat.completions","usage":{"prompt_tokens":248,"completion_tokens":17,"total_tokens":265}}
```
2025-08-26 15:50:47 -04:00
ccurme
2bbd034f85 fix(core): (v1) invoke callback prior to yielding final chunk (#32695) 2025-08-26 14:58:43 -04:00
Mason Daugherty
dc5ac6695c . 2025-08-26 14:43:31 -04:00
Mason Daugherty
620779f61b . 2025-08-26 14:38:09 -04:00
Mason Daugherty
720d08e932 . 2025-08-26 14:24:32 -04:00
Mason Daugherty
5222d51fb0 . 2025-08-26 14:22:11 -04:00
Mason Daugherty
72b2436b49 ss 2025-08-26 14:12:04 -04:00
Mason Daugherty
19d3a73646 . 2025-08-26 14:11:01 -04:00
Chester Curme
659d282d1d standard tests: update multimodal tests 2025-08-26 13:55:44 -04:00
Mason Daugherty
df3db473b8 Merge branch 'cc/1.0/standard_content' of github.com:langchain-ai/langchain into mdrxy/call-version 2025-08-26 13:55:01 -04:00
Mason Daugherty
706ea1b757 . 2025-08-26 13:54:22 -04:00
Mason Daugherty
f1b676c0ee . 2025-08-26 13:54:14 -04:00
Mason Daugherty
518f4dfccb . 2025-08-26 13:54:04 -04:00
ccurme
c63c3ea290 feat(core): (v1) add sentinel value to output_version (#32692) 2025-08-26 13:29:20 -04:00
ccurme
dbebe2ca97 release(core): 0.3.75 (#32693) langchain-core==0.3.75 2025-08-26 11:12:03 -04:00
ccurme
008043977d release(openai): 0.3.32 (#32691) langchain-openai==0.3.32 2025-08-26 14:05:40 +00:00
Jacob Lee
1459d4f4ce fix(openai): Always add raw response object to OpenAI client errors for invoke (#32655) 2025-08-26 09:59:25 -04:00
ccurme
fe9599f118 feat(core): parse tool_call_chunks in content in aggregated stream (#32664) 2025-08-25 15:38:22 -04:00
ccurme
97bd2cf938 fix(core): (v1) fix PDF input translation for openai chat completions (#32673) 2025-08-25 15:15:03 -04:00
Mason Daugherty
5ef18e8f5b feat(core): add .text property, introduce TextAccessor for backward compatibility with text access methods (#32672) 2025-08-25 14:51:40 -04:00
ccurme
f33480c2cf feat(core): trace response body on error (#32653) 2025-08-25 14:28:19 -04:00
ccurme
7e9ae5df60 feat(openai): (v1) delete bind_functions and remove tool_calls from additional_kwargs (#32669) 2025-08-25 14:22:31 -04:00
Mason Daugherty
4e0fd330aa fix: update content_blocks property docstring 2025-08-25 14:10:21 -04:00
Mason Daugherty
1c55536ec1 chore(core): add note about backward compatibility for tool_calls in additional_kwargs in JsonOutputKeyToolsParser 2025-08-25 10:30:41 -04:00
Maitrey Talware
622337a297 docs(docs): fixed typos in documentations (#32661)
Minor typo fixes. (Not linked to current open issues)
2025-08-25 10:02:53 -04:00
Shahroz Ahmad
1819c73d10 docs(docs): update Docker to ClickHouse 25.7 with vector_similarity support (#32659)
- **Description:** Updated Docker command to use ClickHouse 25.7 (has
`vector_similarity` index support). Added `CLICKHOUSE_SKIP_USER_SETUP=1`
env param to [bypass default user
setup](https://clickhouse.com/docs/install/docker#managing-default-user)
and allow external network access. There was also a bug where if you try
to access results using `similarity_search_with_relevance_scores`, they
need to unpacked first.

- **Issue:** Fixes #32094 if someone following tutorial with default
Clickhouse configurations.
2025-08-25 09:59:28 -04:00
Kim
8171403b4a docs(docs): rebranding of Azure AI Studio to Azure AI Foundry (#32658)
# Description
Updated documentation to reflect Microsoft’s rebranding of Azure AI
Studio to Azure AI Foundry. This ensures consistency with current Azure
terminology across the docs.

# Issue
N/A

# Dependencies
None
2025-08-25 09:58:31 -04:00
Chester Curme
2d9fe703cb Merge branch 'wip-v1.0' into cc/1.0/standard_content 2025-08-25 09:56:39 -04:00
Chester Curme
7a108618ae Merge branch 'master' into wip-v1.0 2025-08-25 09:39:39 -04:00
ccurme
62d746e630 feat(core): (v1) restore separate type for AIMessage.tool_calls (#32668) 2025-08-25 09:37:41 -04:00
Mason Daugherty
2d0713c2fc fix(infra): ollama CI langchain-ollama==0.3.7 2025-08-22 16:40:03 -04:00
Mason Daugherty
8060b371bb fix(infra): ollama CI 2025-08-22 16:37:05 -04:00
ccurme
26833f2ebc feat(anthropic): v1 support (#32623) 2025-08-22 16:06:53 -04:00
Mason Daugherty
7851f66503 release(ollama): 0.3.7 (#32651) 2025-08-22 15:18:40 -04:00
Mason Daugherty
af3b88f58d feat(ollama): update reasoning type to support string values for custom intensity levels (e.g. gpt-oss) (#32650) 2025-08-22 15:11:32 -04:00