diff options
| author | sigoden <sigoden@gmail.com> | 2024-05-18 19:06:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-18 19:06:21 +0800 |
| commit | b4a40e3fedb438570770a224b890ea24f6e660a9 (patch) | |
| tree | 344b96102da7cbedf1034d023aa82599940388b1 /Cargo.lock | |
| parent | 1348a62e5f8bc140a7218fbfe1b73f990ab16101 (diff) | |
| download | aichat-b4a40e3fedb438570770a224b890ea24f6e660a9.tar.gz | |
feat: support function calling (#514)
* feat: support function calling
* fix on Windows OS
* implement multi-steps function calling
* fix on Windows OS
* add error for client not support function calling
* refactor message data structure and make claude client supporting function calling
* support reuse previous call results
* improve error handling for function calling
* use prefix `may_` as indicator for `execute` type fucntions
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -38,7 +38,6 @@ dependencies = [ "aws-smithy-eventstream", "base64 0.22.1", "bincode", - "bitflags 2.5.0", "bstr", "bytes", "chrono", @@ -59,6 +58,7 @@ dependencies = [ "log", "mime_guess", "nu-ansi-term 0.50.0", + "num_cpus", "parking_lot", "reedline", "reqwest", @@ -72,6 +72,7 @@ dependencies = [ "simplelog", "syntect", "textwrap", + "threadpool", "time", "tokio", "tokio-graceful", @@ -1071,6 +1072,7 @@ checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ "equivalent", "hashbrown", + "serde", ] [[package]] @@ -2230,6 +2232,15 @@ dependencies = [ ] [[package]] +name = "threadpool" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa" +dependencies = [ + "num_cpus", +] + +[[package]] name = "time" version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" |
