Skip to content

Commit

Permalink
Fix embeddings.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryscan committed Jul 22, 2023
1 parent 5a16143 commit b836bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/embedding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl From<EmbeddingRequest> for GenerateRequest {
fn from(value: EmbeddingRequest) -> Self {
Self {
prompt: Vec::from(value.input).join(""),
max_tokens: 0,
max_tokens: 1,
stop: Default::default(),
sampler: Default::default(),
occurrences: Default::default(),
Expand Down

0 comments on commit b836bfe

Please sign in to comment.