Merge cluster to master #3

Merged
cyberes merged 163 commits from cluster into master 2023-10-27 19:19:22 -06:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 21755450a3 - Show all commits

View File

@ -29,6 +29,7 @@ def tokenize(prompt: str, backend_url: str) -> int:
# Define a function to send a chunk to the server
def send_chunk(chunk):
try:
XXX
r = requests.post(f'{backend_url}/tokenize', json={'input': chunk}, verify=opts.verify_ssl, timeout=opts.backend_generate_request_timeout)
j = r.json()
return j['length']