fix: translation hooks and custom api doc
This commit is contained in:
@@ -694,7 +694,13 @@ export const genTransReq = async ({ reqHook, ...args }) => {
|
||||
try {
|
||||
interpreter.run(`exports.reqHook = ${reqHook}`);
|
||||
const hookResult = await interpreter.exports.reqHook(
|
||||
{ ...args, defaultSystemPrompt, defaultSubtitlePrompt },
|
||||
{
|
||||
...args,
|
||||
defaultSystemPrompt,
|
||||
defaultSubtitlePrompt,
|
||||
defaultNobatchPrompt,
|
||||
defaultNobatchUserPrompt,
|
||||
},
|
||||
{
|
||||
url,
|
||||
body,
|
||||
|
||||
Reference in New Issue
Block a user