Commit d17b61b
Upgrade examples to langchain 1.0 (zauberzeug#5304)
### Motivation
Pipeline's red due to langchain 1.0 incompatibilities.
Error line: `ModuleNotFoundError: No module named
'langchain.callbacks'`, since they moved it in 1.0.
### Implementation
1. Do not install langchain in "install packages to run the examples".
Installed in test_startup.sh anyways.
2. Bump the version to avoid installing too old langchain
3. Change the code (Falko's work)
### Progress
- [x] I chose a meaningful title that completes the sentence: "If
applied, this PR will..."
- [x] The implementation is complete.
- [x] Pytests have been added (or are not necessary).
- [x] Documentation has been added (or is not necessary).
https://github.com/evnchn/nicegui/actions/runs/18641263733
Of course it is more than welcome to make langchain 1.0 compatible, but
I don't have OpenAI access...
---------
Co-authored-by: Falko Schindler <[email protected]>1 parent 2fb9f9d commit d17b61b
File tree
4 files changed
+8
-71
lines changed- .github/workflows
- examples/chat_with_ai
4 files changed
+8
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | | - | |
| 10 | + | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | | - | |
| 23 | + | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 31 | + | |
46 | 32 | | |
47 | 33 | | |
48 | 34 | | |
| |||
51 | 37 | | |
52 | 38 | | |
53 | 39 | | |
54 | | - | |
| 40 | + | |
| 41 | + | |
55 | 42 | | |
56 | 43 | | |
57 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
5 | 3 | | |
0 commit comments