Skip to content

Commit

Permalink
Update vllm_server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian-Winter committed May 26, 2024
1 parent f77f89a commit 2771bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llama_cpp_agent/providers/vllm_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,5 @@ def generate_chunks():
return {"choices": [{"text": result.choices[0].message.content}]}

def tokenize(self, prompt: str) -> list[int]:
result = self.tokenizer.encode(prompt=prompt)
result = self.tokenizer.encode(text=prompt)
return result

0 comments on commit 2771bb8

Please sign in to comment.