Commit ca96abd
authored
feat(ToolChoice): refactor chat system and tool selection (#159)
- Add a system chat message with the content "You are a helpful assistant."
- Introduce a new `ToolChoice` structure with `Type` set to `ToolTypeFunction` and `Function` containing the function name.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>1 parent e11029e commit ca96abd
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
| |||
0 commit comments