MCPcopy Create free account
hub / github.com/GPTScan/GPTScan / makeYesOrNoQuestion

Method makeYesOrNoQuestion

src/chatgpt_api.py:112–114  ·  view source on GitHub ↗
(self, question:str)

Source from the content-addressed store, hash-verified

110 return response['choices'][0]['message']['content']
111
112 def makeYesOrNoQuestion(self, question:str)->str:
113 prompt = f"{question}. Please answer in one word, yes or no."
114 return prompt
115
116 def makeCodeQuestion(self, question:str, code:str):
117 prompt = f'Please analyze the following code, and answer the question "{question}"\n{code}'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected