Commit b3ff4b5
committed
Pass sessionAffinity to workersai model
Include sessionAffinity when creating the workersai model in ChatAgent. The streamText call now invokes workersai with a second argument ({ sessionAffinity: this.sessionAffinity }) so requests can be routed with session affinity (sticky sessions), improving consistency for stateful or session-based interactions.1 parent 930ae10 commit b3ff4b5
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
0 commit comments