| | |
| | | String realPrompt = SMTAIServerApp.getApp().convGlobalMacroString(_prompt, execArg._jsonArgs);
|
| | | execArg._tranReq.traceLLMDebug("call llm : " +_llmId + "\n" + realPrompt);
|
| | |
|
| | | String result = llm.callWithMessage(null, realPrompt, execArg._tranReq);
|
| | | execArg._tranReq.traceLLMDebug("call llm result:\n" + result);
|
| | | execArg._jsonArgs.set(_argKey, result);
|
| | | boolean orgSet = execArg._tranReq.setSendStarStream(true);
|
| | | try
|
| | | {
|
| | | String result = llm.callWithMessage(null, realPrompt, execArg._tranReq);
|
| | | execArg._tranReq.traceLLMDebug("call llm result:\n" + result);
|
| | | execArg._jsonArgs.set(_argKey, result);
|
| | | }
|
| | | finally
|
| | | {
|
| | | execArg._tranReq.setSendStarStream(orgSet);
|
| | | }
|
| | | }
|
| | | finally
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | SMTHttpClient web = new SMTHttpClient();
|
| | | result = web.getHttpString(url, listArgs.toArray(new String[1]), null);
|
| | | result = web.getHttpString(url, listArgs.toArray(new String[listArgs.size()]), null);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | try
|
| | | {
|
| | | _resValue = SMTAIServerApp.getApp().esprimaJs2ASTStr(_resValue);
|
| | | //_resValue = SMTAIServerApp.getApp().esprimaJs2ASTStr(_resValue);
|
| | | }
|
| | | catch(Exception ex)
|
| | | {
|