forked from github/plane
dev: open ai configuration (#2807)
This commit is contained in:
parent
29f3e02adc
commit
f7461af3f5
@ -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)
|
return Response(data, status=status.HTTP_200_OK)
|
||||||
|
Loading…
Reference in New Issue
Block a user