continue icon indicating copy to clipboard operation
continue copied to clipboard

[CON-267] On an unsaved file, Continue sends an empty query, resulting in bad completions

Open coder543 opened this issue 1 year ago • 4 comments

Before submitting your bug report

Relevant environment info

- OS: Linux
- Continue: latest published version
- IDE: VS Code

Description

I am editing a new, unsaved file. It has TypeScript code in it, and VS Code is in TypeScript mode. However, the completions are very bad and always the same. I checked the Continue "output" window, and I can see why.

It's not even trying to send content from the current file. As soon as I saved the file to disk, it seemed to start working normally.

I'm not sure if it is relevant, but I'm using VS Code over a "Remote - SSH" session.

To reproduce

No response

Log output

==========================================================================
==========================================================================
Settings:
contextLength: 4096
model: codegemma:7b-code-q8_0
maxTokens: 1024
stop: <|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<end_of_turn>,<eos>,

,

,/src/,#- coding: utf-8,```,
function,
class,
module,
export,
import
temperature: 0.01
raw: true

############################################

<|fim_prefix|><|fim_suffix|><|fim_middle|>==========================================================================
==========================================================================
Settings:
contextLength: 4096
model: codegemma:7b-code-q8_0
maxTokens: 1024
stop: <|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<|fim_prefix|>,<|fim_suffix|>,<|fim_middle|>,<|file_separator|>,<end_of_turn>,<eos>,

,

,/src/,#- coding: utf-8,```,
function,
class,
module,
export,
import
temperature: 0.01
raw: true

############################################

<|fim_prefix|>
<|fim_suffix|>
<|fim_middle|>==========================================================================
==========================================================================
Completion:

import { Component, OnInit } from '@angular/core';

CON-267

coder543 avatar May 16 '24 13:05 coder543