Skip to content

Commit

Permalink
fix tag & remove unnecessary commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dnouv committed Jun 26, 2024
1 parent 7cb296e commit 2692116
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 38 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,16 @@ jobs:
- name: Expose GH Runtime
uses: crazy-max/ghaction-github-runtime@v3

- name: set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: "${{ github.repository_owner }}"
- name: Set lower case owner name
run: echo "OWNER_LC=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Convert repository name to lowercase
run: echo "REPO_NAME_LC=$(echo ${{ github.event.repository.name }} | awk '{print tolower($0)}')" >> $GITHUB_ENV
run: echo "REPO_NAME_LC=$(echo '${{ github.event.repository.name }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Build and Push Docker Images
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
TAG=${GITHUB_REF#refs/tags/}
else
TAG=${GITHUB_REF#refs/heads/}
fi
make build_and_push_images
TAG=${GITHUB_REF#refs/tags/}
make build_and_push_images TAG=$TAG SERVICE=${{ matrix.services }}
env:
REGISTRY: ghcr.io
ORG: ${{ env.OWNER_LC }}
Expand Down
8 changes: 0 additions & 8 deletions core/tasks/is_ready.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
from .celery_app import app

def is_ready():
# response = requests.get(f"{litellm_url}/health", headers={
# "Authorization": f"Bearer {os.getenv('LITELLM_MASTER_KEY', '')}"
# })
# if not response.ok:
# raise Exception(response.text)

# print(response)

response = requests.get(f"{litellm_url}/health/readiness")
if not response.ok:
raise Exception(response.text)
Expand Down
36 changes: 18 additions & 18 deletions services/backend/api_server/app/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,24 +196,24 @@ async def on_startup():
welcome_asst_instruction += tool_use_instruction

# Create the Welcome Assistant if it doesn't exist
# existing_assistant = await AssistantObject.find_one({"id": "asst_welcome"})
# if not existing_assistant:
# logging.info("Creating Welcome Assistant")
# assistant = AssistantObject(
# assistant_id="asst_welcome",
# object=Object20.assistant.value,
# created_at=int(datetime.now().timestamp()),
# name="Welcome Assistant",
# description="Welcome Assistant",
# model=welcome_asst_model,
# instructions=welcome_asst_instruction,
# tools=[{"type": Type824.retrieval.value}]
# if welcome_asst_model in tool_enabled_model_pool
# else [], # browser
# file_ids=[],
# metadata={},
# )
# await assistant.insert()
existing_assistant = await AssistantObject.find_one({"id": "asst_welcome"})
if not existing_assistant:
logging.info("Creating Welcome Assistant")
assistant = AssistantObject(
assistant_id="asst_welcome",
object=Object20.assistant.value,
created_at=int(datetime.now().timestamp()),
name="Welcome Assistant",
description="Welcome Assistant",
model=welcome_asst_model,
instructions=welcome_asst_instruction,
tools=[{"type": Type824.retrieval.value}]
if welcome_asst_model in tool_enabled_model_pool
else [], # browser
file_ids=[],
metadata={},
)
await assistant.insert()


@app.get("/get_api_key_status", tags=["API Keys"])
Expand Down

0 comments on commit 2692116

Please sign in to comment.