优化取名逻辑
This commit is contained in:
@@ -54,7 +54,11 @@ namespace DouyinApi.Api.Controllers.MiniProgram
|
||||
try
|
||||
{
|
||||
var response = await _namingService.GenerateNamesAsync(normalizedRequest);
|
||||
return Ok(new { results = response.Results });
|
||||
return Ok(new
|
||||
{
|
||||
analysis = response.Analysis,
|
||||
results = response.Results
|
||||
});
|
||||
}
|
||||
catch (ArgumentException ex) when (ex.Message == "invalid_surname")
|
||||
{
|
||||
|
||||
@@ -359,5 +359,13 @@
|
||||
"Enabled": false,
|
||||
"Address": "http://localhost:5341/",
|
||||
"ApiKey": ""
|
||||
},
|
||||
"DeepSeek": {
|
||||
"BaseUrl": "https://api.deepseek.com/v1",
|
||||
"ApiKey": "",
|
||||
"Model": "deepseek-chat",
|
||||
"TimeoutSeconds": 15,
|
||||
"Temperature": 0.6,
|
||||
"MaxTokens": 800
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user