Compiling llmrust v0.1.0 (D:\halowor\llmrust)
error[E0412]: cannot find type `EmbeddingResponse` in this scope
--> src\proxy\mod.rs:2207:65
|
2207 | async fn embed(&self, req: &EmbeddingRequest) -> Result<EmbeddingResponse> {
| ^^^^^^^^^^^^^^^^^
|
::: src\types.rs:782:1
|
782 | pub struct EmbeddingRequest {
| --------------------------- similarly named struct `EmbeddingRequest` defined here
|
help: a struct with a similar name exists
|
2207 - async fn embed(&self, req: &EmbeddingRequest) -> Result<EmbeddingResponse> {
2207 + async fn embed(&self, req: &EmbeddingRequest) -> Result<EmbeddingRequest> {
|
help: consider importing this struct through its public re-export
|
1091 + use crate::EmbeddingResponse;
|
error[E0422]: cannot find struct, variant or union type `EmbeddingResponse` in this scope
--> src\proxy\mod.rs:2209:16
|
2209 | Ok(EmbeddingResponse {
| ^^^^^^^^^^^^^^^^^
|
::: src\types.rs:782:1
|
782 | pub struct EmbeddingRequest {
| --------------------------- similarly named struct `EmbeddingRequest` defined here
|
help: a struct with a similar name exists
|
2209 - Ok(EmbeddingResponse {
2209 + Ok(EmbeddingRequest {
|
help: consider importing this struct through its public re-export
|
1091 + use crate::EmbeddingResponse;
|
error[E0422]: cannot find struct, variant or union type `Embedding` in this scope
--> src\proxy\mod.rs:2215:35
|
2215 | .map(|(i, _)| Embedding {
| ^^^^^^^^^ not found in this scope
|
help: consider importing this struct through its public re-export
|
1091 + use crate::Embedding;
|
Some errors have detailed explanations: E0412, E0422.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `llmrust` (lib test) due to 3 previous errors