MCPcopy Create free account
hub / github.com/ZBayes/basic_rag / initialize

Method initialize

src/server/handlers/llm_handler.py:20–29  ·  view source on GitHub ↗
(self, llm_model:LlmModel)

Source from the content-addressed store, hash-verified

18class LlmHandler(RequestHandler):
19
20 def initialize(self, llm_model:LlmModel):
21 self.llm_model = llm_model
22 # request_body:
23 # {
24 # "query": "什么人不能吃花生"
25 # }
26
27 # response_body = {
28 # "answer":"XXX"
29 # }
30
31 async def post(self):
32 logger.info("request: {}".format(json_decode(self.request.body).get("query", "")))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected