Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/multiple_table_selection
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu634 authored Jul 10, 2024
2 parents 81bc711 + 969bdce commit 2f5db00
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 10 deletions.
4 changes: 2 additions & 2 deletions deployment/kustomizations/base/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ data:
WREN_UI_ENDPOINT: http://wren-ui-svc:3000

#Release version used by wren ui https://github.com/Canner/WrenAI/blob/main/docker/docker-compose.yaml#L85-L88
WREN_PRODUCT_VERSION: "0.7.0"
WREN_PRODUCT_VERSION: "0.7.1-rc.1"
WREN_ENGINE_VERSION: "0.7.0"
WREN_AI_SERVICE_VERSION: "0.7.0"
WREN_AI_SERVICE_VERSION: "0.7.1"
WREN_UI_VERSION: "0.10.0"

# OpenAI
Expand Down
4 changes: 2 additions & 2 deletions deployment/kustomizations/patches/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
WREN_AI_SERVICE_PORT: "5555"

#Release version used by wren ui https://github.com/Canner/WrenAI/blob/main/docker/docker-compose.yaml#L85-L88
WREN_PRODUCT_VERSION: "0.7.0"
WREN_PRODUCT_VERSION: "0.7.1-rc.1"
#fix:
WREN_ENGINE_VERSION: "0.7.0"
WREN_AI_SERVICE_VERSION: "0.7.0"
WREN_AI_SERVICE_VERSION: "0.7.1"
#fix:
WREN_UI_VERSION: "0.10.0"

Expand Down
4 changes: 2 additions & 2 deletions docker/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ GENERATION_MODEL=gpt-3.5-turbo # gpt-3.5-turbo, gpt-4o, gpt-4-turbo

# version
# CHANGE THIS TO THE LATEST VERSION
WREN_PRODUCT_VERSION=0.7.0
WREN_PRODUCT_VERSION=0.7.1-rc.1
WREN_ENGINE_VERSION=0.7.0
WREN_AI_SERVICE_VERSION=0.7.0
WREN_AI_SERVICE_VERSION=0.7.1
IBIS_SERVER_VERSION=0.7.0
WREN_UI_VERSION=0.10.0
WREN_BOOTSTRAP_VERSION=0.1.4
Expand Down
2 changes: 1 addition & 1 deletion wren-ai-service/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ done

echo "wren-ai-service has started."

python src/force_deploy.py
python -m src.force_deploy

# Bring wren-ai-service to the foreground
wait
2 changes: 1 addition & 1 deletion wren-ai-service/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wren-ai-service"
version = "0.7.0"
version = "0.7.2"
description = ""
authors = ["Jimmy Yeh <[email protected]>", "Pao Sheng Wang <[email protected]>", "Aster Sun <[email protected]>"]
license = "AGPL-3.0"
Expand Down
1 change: 1 addition & 0 deletions wren-ai-service/src/providers/embedder/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def __init__(

self.client = AsyncAzureOpenAI(
azure_endpoint=api_base_url,
azure_deployment=model,
api_version=api_version,
api_key=api_key.resolve_value(),
)
Expand Down
2 changes: 1 addition & 1 deletion wren-ai-service/src/providers/engine/wren.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def dry_run_sql(
},
) -> Tuple[bool, Optional[Dict[str, Any]]]:
async with session.post(
f"{self._endpoint}/v2/ibis/{properties.get('source', '')}/query?dryRun=true",
f"{self._endpoint}/v2/connector/{properties.get('source', '')}/query?dryRun=true",
json={
"sql": remove_limit_statement(add_quotes(sql)),
"manifestStr": properties.get("manifest", ""),
Expand Down
8 changes: 8 additions & 0 deletions wren-ai-service/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ def remove_trailing_slash(endpoint: str) -> str:

def init_langfuse():
enabled = os.getenv("LANGFUSE_ENABLE", "false")
host = os.getenv("LANGFUSE_HOST", "https://cloud.langfuse.com")

langfuse_context.configure(
enabled=False if enabled.lower() == "false" else True,
public_key=os.getenv("LANGFUSE_PUBLIC_KEY", ""),
secret_key=os.getenv("LANGFUSE_SECRET_KEY", ""),
host=host,
)

logger.info(f"LANGFUSE_ENABLE: {enabled}")
logger.info(f"LANGFUSE_HOST: {host}")
2 changes: 1 addition & 1 deletion wren-launcher/utils/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const (
// please change the version when the version is updated
WREN_PRODUCT_VERSION string = "0.7.0"
WREN_PRODUCT_VERSION string = "0.7.1-rc.1"
DOCKER_COMPOSE_YAML_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/docker-compose.yaml"
DOCKER_COMPOSE_LLM_YAML_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/docker-compose.llm.yaml"
DOCKER_COMPOSE_ENV_URL string = "https://raw.githubusercontent.com/Canner/WrenAI/" + WREN_PRODUCT_VERSION + "/docker/.env.example"
Expand Down

0 comments on commit 2f5db00

Please sign in to comment.