Commit 5bf6e8e
committed
Support both LangChain 0.3.x and 1.x via Python version markers
This commit enables LangChain 1.x support WITHOUT breaking changes by using
Python-version-conditional dependencies:
- Python 3.9 users: Continue using LangChain 0.3.x (no breaking change)
- Python 3.10+ users: Automatically get LangChain 1.x (new capability)
Changes:
- Add conditional dependency markers in pyproject.toml
- Regenerate poetry.lock with proper version markers
- Handle type compatibility between LangChain versions
This approach ensures CI testing works correctly:
- Python 3.9 tests use LangChain 0.3.x
- Python 3.10+ tests use LangChain 1.x
- Minimum version testing respects Python version constraints1 parent c693948 commit 5bf6e8e
File tree
4 files changed
+146
-60
lines changed- libs/oci
- langchain_oci/chat_models
4 files changed
+146
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | | - | |
| 1361 | + | |
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
| |||
1382 | 1382 | | |
1383 | 1383 | | |
1384 | 1384 | | |
1385 | | - | |
| 1385 | + | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | 1388 | | |
| |||
0 commit comments