Commit 423cca1
Port code to async-openai 0.31.1
- Update async-openai from 0.30.1 to 0.31.1
- Add chat-completion feature to enable API support
- Update imports from async_openai::types:: to async_openai::types::chat::
- Adapt to new ChatCompletionTools and ChatCompletionMessageToolCalls enums
- Remove usage of deprecated ChatCompletionToolType enum
- Wrap tool calls in enum variants (Function) as required by new API
Co-authored-by: Byron <63622+Byron@users.noreply.github.com>1 parent 9e96ae7 commit 423cca1
File tree
6 files changed
+134
-98
lines changed- crates
- but-action/src
- but-tools/src
- but/src/command/legacy/branch
6 files changed
+134
-98
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments