mirror of
https://github.com/weyne85/PentestGPT.git
synced 2025-10-29 16:58:59 +00:00
docs: ✏️ put unused docs into archive
This commit is contained in:
@@ -250,6 +250,7 @@ class ChatGPT:
|
||||
code_fragments = re.findall(r"```(.*?)```", text, re.DOTALL)
|
||||
return code_fragments
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
chatgpt_config = ChatGPTConfig()
|
||||
chatgpt = ChatGPT(chatgpt_config)
|
||||
@@ -260,4 +261,4 @@ if __name__ == "__main__":
|
||||
"generate: {'post': {'tags': ['pet'], 'summary': 'uploads an image', 'description': '', 'operationId': 'uploadFile', 'consumes': ['multipart/form-data'], 'produces': ['application/json'], 'parameters': [{'name': 'petId', 'in': 'path', 'description': 'ID of pet to update', 'required': True, 'type': 'integer', 'format': 'int64'}, {'name': 'additionalMetadata', 'in': 'formData', 'description': 'Additional data to pass to server', 'required': False, 'type': 'string'}, {'name': 'file', 'in': 'formData', 'description': 'file to upload', 'required': False, 'type': 'file'}], 'responses': {'200': {'description': 'successful operation', 'schema': {'type': 'object', 'properties': {'code': {'type': 'integer', 'format': 'int32'}, 'type': {'type': 'string'}, 'message': {'type': 'string'}}}}}, 'security': [{'petstore_auth': ['write:pets', 'read:pets']}]}}",
|
||||
conversation_id,
|
||||
)
|
||||
logger.info(chatgpt.extract_code_fragments(result))
|
||||
logger.info(chatgpt.extract_code_fragments(result))
|
||||
|
||||
Reference in New Issue
Block a user