File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
supporting-blog-content/serverless-ai-agent Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def delete_ess_project(project_name: str) -> str:
117117
118118 url = f"{ env_url } /api/v1/serverless/projects/elasticsearch/{ project_id } "
119119 headers = {"Authorization" : f"ApiKey { api_key } " , "Content-Type" : "application/json" }
120-
120+
121121 try :
122122 response = requests .delete (url , headers = headers )
123123 response .raise_for_status ()
@@ -148,7 +148,7 @@ def get_ess_project_status(project_name: str) -> str:
148148 return "Error: ES_URL is not set in the environment."
149149 if not api_key :
150150 return "Error: API_KEY is not set in the environment."
151-
151+
152152 url = f"{ env_url } /api/v1/serverless/projects/elasticsearch/{ project_id } /status"
153153 headers = {"Authorization" : f"ApiKey { api_key } " }
154154
@@ -267,7 +267,7 @@ def main():
267267 user_input = input ("\n User: " )
268268 if user_input .strip ().lower () in {"exit" , "quit" }:
269269 break
270-
270+
271271 response = agent .chat (user_input )
272272 print ("\n Agent:" , response )
273273
You can’t perform that action at this time.
0 commit comments