Skip to content

Commit 4955a98

Browse files
committed
tlm-core fixes, streaming api fixes
1 parent 026381a commit 4955a98

File tree

8 files changed

+16
-3
lines changed

8 files changed

+16
-3
lines changed

deploy/helm/tlm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.41
18+
version: 0.1.42
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

infra/tlm/environments/staging/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module "tlm" {
2020
environment = local.environment
2121
entity = "internal"
2222
location = local.location
23+
app_version = "0.1.41"
2324

2425
create_openai_service = true
2526
openai_deployments = {

infra/tlm/modules/tlm/app/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resource helm_release "this" {
33
namespace = local.namespace
44
chart = "tlm"
55
repository = "oci://cleanlabtlm.azurecr.io/tlm"
6+
version = var.app_version
67

78
repository_username = var.image_pull_username
89
repository_password = var.image_pull_password

infra/tlm/modules/tlm/app/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ variable "tags" {
1818
description = "The tags to apply to the resources"
1919
}
2020

21+
variable "app_version" {
22+
type = string
23+
description = "The version of the TLM to deploy"
24+
}
25+
2126
variable "cluster_oidc_issuer_url" {
2227
type = string
2328
description = "The OIDC issuer URL of the cluster"

infra/tlm/modules/tlm/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module "app" {
6161

6262
environment = var.environment
6363
location = var.location
64+
app_version = var.app_version
6465
resource_group_name = azurerm_resource_group.this.name
6566

6667
cluster_oidc_issuer_url = module.cluster.oidc_issuer_url

infra/tlm/modules/tlm/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ variable "location" {
1313
description = "The location to deploy the TLM to"
1414
}
1515

16+
variable "app_version" {
17+
type = string
18+
description = "The version of the TLM to deploy"
19+
}
20+
1621
variable "tags" {
1722
type = map(string)
1823
description = "The tags to apply to the resources"

services/chat-backend/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ show_missing = true
5757
default-groups = ["dev"]
5858

5959
[tlm-core]
60-
version = "v0.0.27"
60+
version = "v0.0.29"

services/chat-backend/src/services/streaming.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def __anext__(self) -> bytes:
7676
raise StopAsyncIteration
7777

7878
if not self._event_stack:
79-
await asyncio.sleep(0.1)
79+
await asyncio.sleep(0.01)
8080
return await self.__anext__()
8181

8282
event = self._event_stack.pop()

0 commit comments

Comments
 (0)