Skip to content

Commit 84c0700

Browse files
committed
feat(kotlin): add parameter to Version: ImageMagick 7.1.1-30 Q16-HDRI x86_64 22086 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenMP(5.0) Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib zstd Compiler: gcc (4.2) Usage: stream [options ...] input-image raw-image Image Settings: -authenticate password decipher image with this password -colorspace type alternate image colorspace -compress type type of pixel compression when writing the image -define format:option define one or more image format options -density geometry horizontal and vertical density of the image -depth value image depth -extract geometry extract area from image -identify identify the format and characteristics of the image -interlace type type of image interlacing scheme -interpolate method pixel color interpolation method -limit type value pixel cache resource limit -map components one or more pixel components -monitor monitor progress -quantize colorspace reduce colors in this colorspace -quiet suppress all warning messages -regard-warnings pay attention to warning messages -respect-parentheses settings remain in effect until parenthesis boundary -sampling-factor geometry horizontal and vertical sampling factor -seed value seed a new sequence of pseudo-random numbers -set attribute value set an image attribute -size geometry width and height of image -storage-type type pixel storage type -synchronize synchronize image to storage device -taint declare the image as modified -transparent-color color transparent color -verbose print detailed information about the image -virtual-pixel method virtual pixel access method Miscellaneous Options: -channel mask set the image channel mask -debug events display copious debugging information -help print program options -list type print a list of supported option arguments -log format format of debugging information -version print version information By default, the image format of 'file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output. method in to improve code completion task performance
1 parent 3e890af commit 84c0700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/cc/unitmesh/devti/intentions/action/task/CodeCompletionTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class CodeCompletionTask(private val request: CodeCompletionRequest) :
3838
override fun run(indicator: ProgressIndicator) {
3939
val prompt = promptText()
4040

41-
val flow: Flow<String> = llmFactory.create(request.project).stream(prompt, "")
41+
val flow: Flow<String> = llmFactory.create(request.project).stream(prompt, "", false)
4242
logger.info("Prompt: $prompt")
4343

4444
val editor = request.editor
@@ -90,7 +90,7 @@ class CodeCompletionTask(private val request: CodeCompletionRequest) :
9090
logger.warn("Prompt: $prompt")
9191
LLMCoroutineScope.scope(project).launch {
9292
//TODO: check to refactor, this maybe hardcode
93-
val flow: Flow<String> = llmFactory.createForInlayCodeComplete(project).stream(prompt, "")
93+
val flow: Flow<String> = llmFactory.createForInlayCodeComplete(project).stream(prompt, "", false)
9494
val suggestion = StringBuilder()
9595
flow.collect {
9696
suggestion.append(it)

0 commit comments

Comments
 (0)