Skip to content

Commit

Permalink
Reduce code
Browse files Browse the repository at this point in the history
  • Loading branch information
rihardsgravis committed Dec 12, 2023
1 parent 3f5e72b commit f72bc4b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ class Config:

def get_tools(self) -> List[BaseTool]:
# Fetch and format the API spec
response = requests.get(f"{self.url}/openapi.json")
response = requests.get(self.url)

api_spec = reduce_openapi_spec(self.url, response.json())

# Prepare request tools
Expand Down

0 comments on commit f72bc4b

Please sign in to comment.