Skip to content

Commit

Permalink
Logan/batch of fixes (#11059)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich authored Feb 21, 2024
1 parent 6b1083b commit 757c66c
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ description = "llama-index callbacks openinference integration"
license = "MIT"
name = "llama-index-callbacks-openinference"
readme = "README.md"
version = "0.1.2"
version = "0.1.3"

[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,15 @@ def stream_complete(
response = post_http_request(self.api_url, sampling_params, stream=True)

def gen() -> CompletionResponseGen:
response_str = ""
for chunk in response.iter_lines(
chunk_size=8192, decode_unicode=False, delimiter=b"\0"
):
if chunk:
data = json.loads(chunk.decode("utf-8"))

yield CompletionResponse(text=data["text"][0])
response_str += data["text"][0]
yield CompletionResponse(text=response_str, delta=data["text"][0])

return gen()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ description = "llama-index llms vllm integration"
license = "MIT"
name = "llama-index-llms-vllm"
readme = "README.md"
version = "0.1.3"
version = "0.1.4"

[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, integration_token: Optional[str] = None) -> None:

token = integration_token
headers = {
"Authorization": "Bearer " + self.token,
"Authorization": "Bearer " + token,
"Content-Type": "application/json",
"Notion-Version": "2022-06-28",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ license = "MIT"
maintainers = ["jerryjliu"]
name = "llama-index-readers-notion"
readme = "README.md"
version = "0.1.4"
version = "0.1.5"

[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ description = "llama-index response synthesizers google integration"
license = "MIT"
name = "llama-index-response-synthesizers-google"
readme = "README.md"
version = "0.1.1"
version = "0.1.2"

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ description = "llama-index vector stores google integration"
license = "MIT"
name = "llama-index-vector-stores-google"
readme = "README.md"
version = "0.1.1"
version = "0.1.2"

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ description = "llama-index vector_stores qdrant integration"
license = "MIT"
name = "llama-index-vector-stores-qdrant"
readme = "README.md"
version = "0.1.1"
version = "0.1.2"

[tool.poetry.dependencies]
python = ">=3.8.1,<3.12"
Expand Down

0 comments on commit 757c66c

Please sign in to comment.