PyChatGPT icon indicating copy to clipboard operation
PyChatGPT copied to clipboard

Return result is incomplete

Open Lxk-Kallen opened this issue 3 years ago • 9 comments

It seems like only a fraction of the results are returned, Below is my problem and the result I got

ask: 请帮我写一个前端页面,要求:列表、分页、创建、删除、修改,再美化一下页面

answer: 以下是一个基于JavaScript框架(如Angular、React、Vue)开发的简单前端页面,它提供了列表、分页、创建、删除、修改等功能:

<!DOCTYPE html>
<html>
<head>
  <title>TMS系统</title>
  <style>
    table {
      width: 100%;
      border-collapse: collapse;
    }
    th, td {
      border: 1px solid #ddd;
      padding: 8px;
    }
    tr:nth-child(even) {
      background-color: #f2f2f2;
    }
    button {
      padding: 10px 20px;
      background-color: #4CAF50;
      color: white;
      border: none;
      cursor: pointer;
    }
    .pagination {
      display: inline-block;
    }
    .pagination a {
      color: black;
      float: left;
      padding: 8px 16px;
      text-decoration: none;
    }
    .pagination a.active {
      background-color: #4CAF50;
      color: white;
    }
    .pagination a:hover:not(.active) {
      background-color: #ddd;
    }

Lxk-Kallen avatar Dec 08 '22 08:12 Lxk-Kallen

I don't know what language that is. But since it involves Angular/HTML, I assume you asked for some code?

rawandahmad698 avatar Dec 08 '22 08:12 rawandahmad698

I don't know what language that is. But since it involves Angular/HTML, I assume you asked for some code?

He means the code is truncated. He wants to get a full code in a single ask.

FuryMartin avatar Dec 08 '22 09:12 FuryMartin

image Not just the code, what I think is truncated is the reply

你可以跟他说继续,他就会把剩下的发给你

happy-game avatar Dec 08 '22 11:12 happy-game

I don't know what language that is. But since it involves Angular/HTML, I assume you asked for some code?

He was asking why chatGPT gave him an incomplete reply, because in his screenshot chatGPT stopped after only half of the sentence. But I think it's a problem with chatGPT that when its reply is too long, it will truncates the reply into pieces and doesn't make sure the sentence is complete when it's truncated. In this case, just say "continue(in chinese is"继续")" to chatGPT to get the rest of the reply.

happy-game avatar Dec 08 '22 16:12 happy-game