mirror of
https://github.com/arc53/DocsGPT.git
synced 2026-05-06 16:25:04 +00:00
fix: small issues
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
results.txt
|
||||
experiments/
|
||||
|
||||
experiments
|
||||
|
||||
@@ -112,7 +112,7 @@ class InternalSearchTool(Tool):
|
||||
docs = retriever.search(query)
|
||||
except Exception as e:
|
||||
logger.error(f"Internal search failed: {e}", exc_info=True)
|
||||
return f"Search failed: {str(e)}"
|
||||
return "Search failed: an internal error occurred."
|
||||
|
||||
if not docs:
|
||||
return "No documents found matching your query."
|
||||
|
||||
12
results.txt
12
results.txt
@@ -1,12 +0,0 @@
|
||||
Base URL:http://petstore.swagger.io,https://api.example.com
|
||||
Path1: /pets
|
||||
description: None
|
||||
parameters: []
|
||||
methods:
|
||||
get=A paged array of pets
|
||||
post=Null response
|
||||
Path2: /pets/{petId}
|
||||
description: None
|
||||
parameters: []
|
||||
methods:
|
||||
get=Expected response to a valid request
|
||||
Reference in New Issue
Block a user