openai-php / client

⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API.
MIT License
4.7k stars 483 forks source link

Not issue but improvment #166

Closed oitsuki closed 1 year ago

oitsuki commented 1 year ago

When the gpt anwser the question we can have the question or a text added inside the result like :

Question : Sans répéter la question dans la réponse, peux-tu me traduire en Francais et me donner 7 mots clefs SEO sans inclure de termes répétitifs. Ils doivent être séparés par une virgule (exemple : vaisselle, verres, couverts pour la catégorie couverts) concernant ce terme : iphone+14+pro+max+

Response : Traduction en français : iPhone 14 Pro MaxMots-clés SEO : smartphone, Apple, haut de gamme, technologie, appareil mobile, iOS, performance

All this point must be removed added by gpt : Traduction en français : iPhone 14 Pro MaxMots-clés SEO :

Correct response : smartphone, Apple, haut de gamme, technologie, appareil mobile, iOS, performance

It will be fine if we can have a function to have only the brut response without some point added by gpt.

Currently I do not find anything like this inside the library

gehrisandro commented 1 year ago

Hi @oitsuki

I think this is out of scope of this library as it depends on your prompt and requirements how to modify the response. So this should live in your application logic.