Open Semihal opened 4 days ago
@Semihal can you share what you see in the prompt logs? This would help us know whether the model is sending these escaped characters or not
@Semihal can you share what you see in the prompt logs? This would help us know whether the model is sending these escaped characters or not
==========================================================================
Settings:
contextLength: 4096
model: qwen-fim
maxTokens: 1024
temperature: 0.01
raw: true
stop:
,
,/src/,#- coding: utf-8,```,
def,
class,
"""#
log: undefined
############################################
<fim_prefix> for x in snake_list:
pygame.draw.rect(dis, black, [x[0], x[1], snake_block, snake_block])
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)
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()
for event in pygame.event.get():
if event.type == pygame.QUIT:
game_over = True
game_close = False
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_UP:
y1_change = -snake_block
x1_change = 0
elif event.key == pygame.K_DOWN:
y1_change = snake_block
x1_change = 0
elif event.key == pygame.K_LEFT:
x1_change = -snake_block
y1_change = 0
elif event.key == pygame.K_RIGHT:
x1_change = snake_block
y1_change = 0
if x1 >= dis_width or x1 < 0 or y1 >= dis_height or y1 < 0:
game_close = True
x1 += x1_change
y1 += y1_change
dis.fill(blue)
pygame.draw.rect(dis, green, [foodx, foody, snake_block, snake_block])
snake_Head = []
snake_Head.append(x1)
snake_Head.append(y1)
snake_list.append(snake_Head)
if len(snake_list) > Length_of_snake:
del snake_list[0]
for x in snake_list[:-1]:
if x == snake_Head:
game_close = True
our_snake(snake_block, snake_list)
pygame.display.update()
if x1 == foodx and y1 == foody:
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
Length_of_snake += 1
if <fim_suffix>
clock.tick(snake_speed)
pygame.quit()
quit()<fim_middle> ==========================================================================
==========================================================================
Completion:
0 <= x1 < dis_width and 0 <= y1 < dis_height:
pygame.draw.rect(dis, black, [x1, y1, snake_block, snake_block])
else:
game_close = True
As I understand it, there is excessive shielding, to which LM responds in the same way?
@Semihal is it safe to assume that your code doesn't actually look like =
and that these should all be =
? It looks like the language model is just responding to match the escape pattern that it sees above, so the problem is actually in the prompt
@Semihal is it safe to assume that your code doesn't actually look like
=
and that these should all be=
? It looks like the language model is just responding to match the escape pattern that it sees above, so the problem is actually in the prompt
I have the code without any escaping. The screenshot in the original message shows an example (there is no escaping). Apparently, the plugin is running a data transfer escape and LLM is trying to match it. Can we make some additional parameter in config.json to disable the escaping?
Before submitting your bug report
Relevant environment info
Description
I had broken autocomplete:
The same model with the CodeGPT plugin for JetBrainns is working properly :(
To reproduce
No response
Log output
No response