Skip to content

Commit

Permalink
fix(models-http-api): use completion and embedding endpoint for llama…
Browse files Browse the repository at this point in the history
….cpp
  • Loading branch information
zwpaper committed Nov 12, 2024
1 parent c5a46ab commit 21fbcb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/http-api-bindings/src/completion/llama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl LlamaCppEngine {

Self {
client,
api_endpoint: format!("{}/completions", api_endpoint),
api_endpoint: format!("{}/completion", api_endpoint),

Check warning on line 22 in crates/http-api-bindings/src/completion/llama.rs

View check run for this annotation

Codecov / codecov/patch

crates/http-api-bindings/src/completion/llama.rs#L22

Added line #L22 was not covered by tests
api_key,
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/http-api-bindings/src/embedding/llama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl LlamaCppEngine {

Self {
client,
api_endpoint: format!("{}/embeddings", api_endpoint),
api_endpoint: format!("{}/embedding", api_endpoint),

Check warning on line 19 in crates/http-api-bindings/src/embedding/llama.rs

View check run for this annotation

Codecov / codecov/patch

crates/http-api-bindings/src/embedding/llama.rs#L19

Added line #L19 was not covered by tests
api_key,
}
}
Expand Down

0 comments on commit 21fbcb5

Please sign in to comment.