You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new repo starting from this template and when I run cargo build I get this error:
Compiling llm-chain-openai v0.8.3
error[E0308]: mismatched types
--> /Users/madchicken/.cargo/registry/src/github.com-1ecc6299db9ec823/llm-chain-openai-0.8.3/src/chatgpt/executor.rs:106:72
|
106 | let tokens_used = num_tokens_from_messages(&model.to_string(), &messages)
| ------------------------ ^^^^^^^^^ expected slice, found struct `Vec`
| |
| arguments to this function are incorrect
|
= note: expected reference `&[async_openai::types::types::ChatCompletionRequestMessage]`
found reference `&Vec<async_openai::types::ChatCompletionRequestMessage>`
note: function defined here
--> /Users/madchicken/.cargo/registry/src/github.com-1ecc6299db9ec823/tiktoken-rs-0.4.3/src/api.rs:358:12
|
358 | pub fn num_tokens_from_messages(
| ^^^^^^^^^^^^^^^^^^^^^^^^
For more information about this error, try `rustc --explain E0308`.
error: could not compile `llm-chain-openai` due to previous error
I created a new repo starting from this template and when I run
cargo build
I get this error:Cargo version: cargo 1.68.2 (6feb7c9cf 2023-03-26)
Rustc version: rustc 1.68.2 (9eb3afe9e 2023-03-27)
The text was updated successfully, but these errors were encountered: