Skip to content

Commit 9188e49

Browse files
committed
lint
1 parent e799bd1 commit 9188e49

File tree

1 file changed

+3
-3
lines changed
  • supporting-blog-content/serverless-ai-agent

1 file changed

+3
-3
lines changed

supporting-blog-content/serverless-ai-agent/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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("\nUser: ")
268268
if user_input.strip().lower() in {"exit", "quit"}:
269269
break
270-
270+
271271
response = agent.chat(user_input)
272272
print("\nAgent:", response)
273273

0 commit comments

Comments
 (0)