feat: advanced prompt backend (#1301)
Co-authored-by: takatost <takatost@gmail.com>
This commit is contained in:
parent
2d1cb076c6
commit
42a5b3ec17
61 changed files with 767 additions and 581 deletions
|
|
@ -115,7 +115,7 @@ class MessageMoreLikeThisApi(WebApiResource):
|
|||
streaming = args['response_mode'] == 'streaming'
|
||||
|
||||
try:
|
||||
response = CompletionService.generate_more_like_this(app_model, end_user, message_id, streaming)
|
||||
response = CompletionService.generate_more_like_this(app_model, end_user, message_id, streaming, 'web_app')
|
||||
return compact_response(response)
|
||||
except MessageNotExistsError:
|
||||
raise NotFound("Message Not Exists.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue