mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 02:14:23 +00:00
fix: small issues
This commit is contained in:
1 parent
e8d11fdfa6
commit
c6ece177cd
3 files changed
+2
-13
No files matched your search
@@ -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
@@ -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