ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/** Sometimes the model gets caught in repeating a simplistic and unhelpful pattern
* This file provides functionality to check whether this might be the case
*/
interface RepetitionConfig {
max_token_sequence_length: number;
last_tokens_to_consider: number;
}
const configs: RepetitionConfig[] = [
// in case of single token, 10 repetitions is too much already:
{ max_token_sequence_length: 1, last_tokens_to_consider: 10 },
// if the last 30 tokens are a repeat of up to 10 tokens, then it's a pattern:
{ max_token_sequence_length: 10, last_tokens_to_consider: 30 },
// if the pattern is very long, it needs to account for a long stretch so we can be sure
{ max_token_sequence_length: 20, last_tokens_to_consider
max_token_sequence_length last_tokens_to_consider
max_token_sequence_length last_tokens_to_consider
text numberOfRepetitions mostRepeatedLine totalLines
textlength
numberOfRepetitions mostRepeatedLine totalLines
repetitionMap
lines text
line lines
line line
linelength
repetitions repetitionMapline
repetitionMapline repetitions
mostRepeatedLine
maxRepetitions
line repetitions repetitionMap
repetitions maxRepetitions
maxRepetitions repetitions
mostRepeatedLine line
numberOfRepetitions maxRepetitions mostRepeatedLine totalLines lineslength
tokens
tokensBackwards tokens
tokensBackwards
tokensBackwards
tokensBackwardstoken tokenlength
s ArrayLike
prefix s
config configs
slength configlast_tokens_to_consider
patternLength configlast_tokens_to_consider prefixconfiglast_tokens_to_consider
patternLength configmax_token_sequence_length
s ArrayLike
pi slength
pi
k
q q slength q
k sk sq
k pik
sk sq
k
piq k
pi