mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
style(api): 注释掉调试日志
This commit is contained in:
parent
d7e5322f94
commit
883233b443
@ -43,10 +43,10 @@ class OpenaiChat {
|
|||||||
];
|
];
|
||||||
|
|
||||||
try {
|
try {
|
||||||
logger.info("[DEBUG] 请求体:", {
|
// logger.info("[DEBUG] 请求体:", {
|
||||||
model: model,
|
//model: model,
|
||||||
messages,
|
// messages,
|
||||||
});
|
//});
|
||||||
|
|
||||||
const completion = await this.openai.chat.completions.create({
|
const completion = await this.openai.chat.completions.create({
|
||||||
messages: messages,
|
messages: messages,
|
||||||
@ -58,7 +58,7 @@ class OpenaiChat {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const aiResponse = completion.choices[0].message.content;
|
const aiResponse = completion.choices[0].message.content;
|
||||||
logger.info(aiResponse);
|
//logger.info(aiResponse);
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
aiResponse: aiResponse,
|
aiResponse: aiResponse,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user