Add category deletion feature
This commit is contained in:
@ -127,7 +127,10 @@ ${articleDetails}
|
||||
try {
|
||||
const response = await openai.chat.completions.create({
|
||||
model: config.openai.modelName,
|
||||
messages: [{ role: "system", content: prompt.trim() }, {role:"user", content: sendContent.trim()}],
|
||||
messages: [
|
||||
{ role: "system", content: prompt.trim() },
|
||||
{ role: "user", content: sendContent.trim() },
|
||||
],
|
||||
temperature: 0.6,
|
||||
});
|
||||
|
||||
@ -171,7 +174,9 @@ export async function openAI_ClassifyEpisode(
|
||||
}
|
||||
|
||||
const prompt = `
|
||||
ポッドキャストエピソードの情報を見て、適切なトピックカテゴリに分類してください。
|
||||
以下のポッドキャストエピソードの情報を見て、適切なトピックカテゴリに分類してください。
|
||||
|
||||
${textForClassification}
|
||||
|
||||
以下のカテゴリから1つを選択してください:
|
||||
- テクノロジー
|
||||
@ -191,8 +196,8 @@ export async function openAI_ClassifyEpisode(
|
||||
try {
|
||||
const response = await openai.chat.completions.create({
|
||||
model: config.openai.modelName,
|
||||
messages: [{ role: "system", content: prompt.trim() }, {role: "user", content: textForClassification.trim()}],
|
||||
temperature: 0.3,
|
||||
messages: [{ role: "user", content: prompt.trim() }],
|
||||
temperature: 0.2,
|
||||
});
|
||||
|
||||
const category = response.choices[0]?.message?.content?.trim();
|
||||
|
Reference in New Issue
Block a user