mirror of
https://github.com/makeplane/plane.git
synced 2026-04-25 17:49:35 -05:00
dev: open ai configuration (#2807)
This commit is contained in:
committed by
sriram veeraghanta
parent
af8804eb12
commit
97c50b2957
@@ -92,4 +92,13 @@ class ConfigurationEndpoint(BaseAPIView):
|
||||
)
|
||||
)
|
||||
|
||||
# Open AI settings
|
||||
data["has_openai_configured"] = bool(
|
||||
get_configuration_value(
|
||||
instance_configuration,
|
||||
"OPENAI_API_KEY",
|
||||
os.environ.get("OPENAI_API_KEY", None),
|
||||
)
|
||||
)
|
||||
|
||||
return Response(data, status=status.HTTP_200_OK)
|
||||
|
||||
Reference in New Issue
Block a user