mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 04:12:13 +00:00
Merge branch 'plugin_init' of https://github.com/csunny/DB-GPT into plugin_init
This commit is contained in:
commit
8721ea12c1
@ -101,15 +101,16 @@ def generate(prompt_request: PromptRequest):
|
||||
"stop": prompt_request.stop
|
||||
}
|
||||
|
||||
response = []
|
||||
response = []
|
||||
rsp_str = ""
|
||||
output = generate_stream_gate(params)
|
||||
for o in output:
|
||||
print(o)
|
||||
response.append(o)
|
||||
|
||||
rsp = "".join(response)
|
||||
print("rsp:",rsp)
|
||||
return {"response": rsp}
|
||||
for rsp in output:
|
||||
# rsp = rsp.decode("utf-8")
|
||||
rsp_str = str(rsp, "utf-8")
|
||||
print("[TEST: output]:", rsp_str)
|
||||
response.append(rsp_str)
|
||||
|
||||
return {"response": rsp_str}
|
||||
|
||||
|
||||
@app.post("/embedding")
|
||||
|
Loading…
Reference in New Issue
Block a user