deanxv / coze-discord-proxy

代理Discord对话Coze-Bot,实现以API形式请求GPT4模型,提供对话、文生图、图生文、知识库检索等功能。
GNU General Public License v3.0
3.55k stars 1.05k forks source link

回复内容大概在2000字符左右的时候会用省略号代替,在coze中调整貌似没效果 #215

Closed y1713375484 closed 1 week ago

y1713375484 commented 1 week ago

温馨提示: 未star项目会被自动关闭issue哦!

例行检查

问题描述

image

coze中调整了Response max length但测试后发现与默认的2000回复长度没有区别 复现步骤

image

完整的回复内容

当然可以!以下是一个简单的贪吃蛇游戏代码,使用 pygame 库来实现。首先,你需要安装 pygame 库。你可以通过以下命令安装它: pip install pygame

接下来是完整的代码:


import pygame
import time
import random
初始化pygame
pygame.init()
定义颜色
white = (255, 255, 255)
yellow = (255, 255, 102)
black = (0, 0, 0)
red = (213, 50, 80)
green = (0, 255, 0)
blue = (50, 153, 213)
设置窗口大小
dis_width = 800
dis_height = 600
dis = pygame.display.set_mode((dis_width, dis_height))
pygame.display.set_caption('贪吃蛇')
clock = pygame.time.Clock()
snake_block = 10
snake_speed = 15
font_style = pygame.font.SysFont("bahnschrift", 25)
score_font = pygame.font.SysFont("comicsansms", 35)
def your_score(score):
    value = score_font.render("你的得分: " + str(score), True, black)
    dis.blit(value, [0, 0])
def our_snake(snake_block, snake_list):
    for x in snake_list:
        pygame.draw.rect(dis, black, [x[0], x[1], snake_block, snake_block])
def message(msg, color):
    mesg = font_style.render(msg, True, color)
    dis.blit(mesg, [dis_width / 6, dis_height / 3])
def gameLoop():
    game_over = False
    game_close = False
    x1 = dis_width / 2
    y1 = dis_height / 2
    x1_change = 0
    y1_change = 0
    snake_List = []
    Length_of_snake = 1
    foodx = round(random.randrange(0, dis_width - snake_block) / 10.0) * 10.0
    foody = round(random.randrange(0, dis_height - snake_block) / 10.0) * 10.0
    while not game_over:
        while game_close == True:
            dis.fill(blue)
            message("你输了! 按Q退出或按C继续", red)
            your_score(Length_of_snake - 1)
            pygame.display.update()
            for event in pygame.event.get():
                if event.type == pygame.KEYDOWN:
                    if event.key == pygame.K_q:
                        game_over = True
                        game_close = False
                    if event.key == pygame.K_c:
                        gameLoop()
... 
**预期结果**

**相关截图**
如果没有的话,请删除此节。
deanxv commented 1 week ago

要不要直接去问coze官方呢?这个和本项目无直接关系。