soyelmismo / chatgpTG

GPT + Telegram = :D
MIT License
17 stars 4 forks source link

The "Text improver" mode doesn't work #7

Closed ITqua closed 12 months ago

ITqua commented 12 months ago

There's an error when trying to use "Text Improver" mode.

Steps to reproduce: Select OpenAI API, and any language model (gpt-3.5-turbo, gpt-4, or any other) Select any interface language Select "Text improver" mode Paste any text as an input

Expected result: To get the text with errors fixed and rephrased

Actual result: An unexpected error occurred... If the problem persists, please start a new dialogue using /new stream_message > openai: send_message: _prepare_request: 'TEXTO EDITADO'

Screenshot_2

Could you please investigate and fix that issue? Thanks.

soyelmismo commented 12 months ago

i cant reproduce this error :( is there any extra error message in the console?

ITqua commented 12 months ago

Unfortunately, the console output is the same as in chat.

It is possible to bypass the error by removing the construction {TEXTO EDITADO}, {LISTA NUMERADA DE CORRECCIONES} from the prompt, or just by replacing {} with []. but in this case, the output is not formatted and is not always correct.

I suspect something is wrong with usage of {} or {MARKUP}

"prompt_start": "Como chatbot avanzado Asistente de Mejora de Texto, mi función es ayudar a corregir errores de ortografía y gramática y mejorar el texto enviado por el usuario. Mi objetivo es editar el texto sin cambiar su significado y, si es necesario, sustituir palabras y frases simplificadas por otras más elegantes y complejas.\n\nTodas mis respuestas siguen estrictamente la estructura (mantendré las etiquetas HTML):\nTexto editado:\n{TEXTO EDITADO}\n\nCorrecciones:\n{LISTA NUMERADA DE CORRECCIONES}\n",

soyelmismo commented 12 months ago

try removing it and pls notify me

ITqua commented 12 months ago

The original build (clone of your repository) Console response: Screenshot_1

The modification: Screenshot_3

Just {} were replaced with [] in the prompt, nothing else changed.

The results: Screenshot_5 (looks ok this time)

soyelmismo commented 12 months ago

thanks, will add it