MCPcopy Create free account

hub / github.com/aiwaves-cn/RecurrentGPT / functions

Functions20 in github.com/aiwaves-cn/RecurrentGPT

↓ 15 callersFunctionget_content_between_a_b
(a,b,text)
utils.py:28
↓ 7 callersFunctionget_api_response
(content: str, max_tokens=None)
utils.py:6
↓ 7 callersMethodstep
(self, response_file=None)
human_simulator.py:134
↓ 4 callersMethodstep
(self, response_file=None)
recurrentgpt.py:117
↓ 3 callersFunctionparse_instructions
(instructions)
utils.py:93
↓ 2 callersFunctionget_init
init_text: if the title, outline, and the first 3 paragraphs are given in a .txt file, directly read text: if no .txt file is given, use init
utils.py:32
↓ 2 callersMethodparse_output
(self, text)
human_simulator.py:109
↓ 2 callersMethodparse_output
(self, output)
recurrentgpt.py:85
↓ 2 callersMethodparse_plan
(self,response)
human_simulator.py:58
↓ 2 callersMethodselect_plan
(self,response_file)
human_simulator.py:63
↓ 1 callersFunctioninit_prompt
(novel_type, description)
gradio_server.py:16
↓ 1 callersMethodprepare_input
(self)
human_simulator.py:16
↓ 1 callersMethodprepare_input
(self, new_character_prob=0.1, top_k=2)
recurrentgpt.py:21
Method__init__
(self, input, memory, embedder)
human_simulator.py:6
Method__init__
(self, input, short_memory, long_memory, memory_index, embedder)
recurrentgpt.py:11
Functioncontroled_step
(short_memory, long_memory, selected_instruction, current_paras, request: gr.Request, )
gradio_server.py:118
Functionget_chatgpt_response
(model,prompt)
utils.py:84
Functioninit
(novel_type, description, request: gr.Request)
gradio_server.py:44
Functionon_select
(instruction1, instruction2, instruction3, evt: gr.SelectData)
gradio_server.py:159
Functionstep
(short_memory, long_memory, instruction1, instruction2, instruction3, current_paras, request: gr.Request, )
gradio_server.py:73