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 (#3409)
  • Loading branch information
zwpaper authored Nov 12, 2024
1 parent c5a46ab commit a7d29b8
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),
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),
api_key,
}
}
Expand Down

0 comments on commit a7d29b8

Please sign in to comment.