From 9b4142d0baadf77740526b2d5f1eaa4176ce2a75 Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Fri, 10 May 2024 10:25:29 +0200 Subject: [PATCH] fix: NEXT_PUBLIC_AUTH_MODES in docker-compose.yml (#2572) This pull request fixes the value of NEXT_PUBLIC_AUTH_MODES in the docker-compose.yml file. The previous value was incorrect and has been updated to the correct value. --- backend/modules/brain/integrations/GPT4/Brain.py | 3 +-- docker-compose.yml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/modules/brain/integrations/GPT4/Brain.py b/backend/modules/brain/integrations/GPT4/Brain.py index deba037a5972..6a8af8c91278 100644 --- a/backend/modules/brain/integrations/GPT4/Brain.py +++ b/backend/modules/brain/integrations/GPT4/Brain.py @@ -47,7 +47,7 @@ class ImageGenerationInput(BaseModelV1): class ImageGeneratorTool(BaseTool): name = "image-generator" - description = "useful for when you need to answer questions about current events" + description = "useful for when you need to generate an image from a prompt." args_schema: Type[BaseModel] = ImageGenerationInput return_direct = True @@ -63,7 +63,6 @@ def _run( quality="standard", n=1, ) - logger.info(response.data[0]) image_url = response.data[0].url revised_prompt = response.data[0].revised_prompt # Make the url a markdown image diff --git a/docker-compose.yml b/docker-compose.yml index 5f6f1a803dcd..7713d5f4e3e5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: - NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY} - NEXT_PUBLIC_CMS_URL=${NEXT_PUBLIC_CMS_URL} - NEXT_PUBLIC_FRONTEND_URL=${NEXT_PUBLIC_FRONTEND_URL} + - NEXT_PUBLIC_AUTH_MODES=${NEXT_PUBLIC_AUTH_MODES} container_name: web depends_on: - backend-core