Skip to content

Commit

Permalink
Update OpenAIServiceProductTitle to enhance descriptions and increase…
Browse files Browse the repository at this point in the history
… max_tokens
  • Loading branch information
jamalsoueidan committed Jul 1, 2024
1 parent 872ebe3 commit f13e31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/openai/services/product-title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export const OpenAIServiceProductTitle = async ({
messages: [
{
role: "system",
content: `You are an expert in correcting treatment titles and descriptions. Please correct any grammatical errors in title and description. If the description is missing, add a short sentence that encourages customers to buy the product. Please responds with title, description json format and keep the language in danish.`,
content: `You are an expert in correcting treatment titles and descriptions. Please correct any grammatical errors in title and description. If the description is missing, add a short sentence that encourages customers to buy this treatment, the text should be from the indiviual beauty professional as seller of the treatment. Please responds with title, description json format and keep the language in danish.`,
},
{
role: "user",
content: `Title: ${title}\nDescription: ${description || ""}`,
},
],
max_tokens: 100,
max_tokens: 500,
response_format: {
type: "json_object",
},
Expand Down

0 comments on commit f13e31b

Please sign in to comment.