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.
*--------------------------------------------------------------------------------------------*/
import { IChatEndpoint, IChatEndpointTokenPricing, PENDING_DEPRECATION_CODE } from '../../../platform/networking/common/networking';
import * as l10n from '@vscode/l10n';
import type { LanguageModelChatInformation, LanguageModelConfigurationSchema } from 'vscode';
/**
* Picks a sensible default reasoning-effort level given the levels advertised
* by an endpoint and the model `family`. The picker must never receive
* `undefined`, otherwise the UI shows an "undefined" state.
*
* Selection order:
* - claude / Kimi K3 families → 'high' if available
* - other families → 'medium' if available
* - fallback → the first advertised level
*/
export function pickDefaultReasoningEffort(effortLevels: readonly string[], family: string): string |
effortLevelslength
lowerFamily family
preferred lowerFamily lowerFamily
effortLevelspreferred
preferred
effortLevels
level
level
l10n
l10n
l10n
l10n
l10n
l10n
l10n
level
level
level
l10n
l10n
l10n
l10n
l10n
l10n
l10n
level level
effortLevels family NonNullableLanguageModelConfigurationSchema
type
title l10n
effortLevels
enumItemLabels effortLevelsgetReasoningEffortLabel
enumDescriptions effortLevelsgetReasoningEffortDescription
effortLevels family
group
tier
tier
l10n
l10n
l10n
l10n
tier tier
tier
tier
l10n
l10n
l10n
l10n
tier
tiers defaultTier NonNullableLanguageModelConfigurationSchema
type
title l10n
tiers
enumItemLabels tiersgetAutoModeTierLabel
enumDescriptions tiersgetAutoModeTierDescription
defaultTier
group
endpoint PickIChatEndpoint texts Record rowWarning
texts Record endpointwarningText
endpointdegradationReason
texts endpointdegradationReason
Objecttextslength
texts rowWarning endpointdegradationReason texts
endpoint IChatEndpoint LanguageModelChatInformation name family
name endpointname
family endpointfamily
family name
name
l10n
name
l10n
name
l10n
family name family name
name family
l10n
name
l10n
name
l10n
name
l10n
name
l10n
l10n
family name
name
l10n
name
l10n
l10n
family name
l10n
discountRange low high low high
discountRange
low MathdiscountRangelow
high MathdiscountRangehigh
low high
low low
low high
discountRange low high
discount discountRange
discount
discounthigh
l10n discountlow
l10n discountlow discounthigh
discountRange low high
base l10n
learnMore l10n
discount discountRange
discountSentence discount
discounthigh
l10n discountlow
l10n discountlow discounthigh
discountSentence
price
price
price
price
price
count
count
value count
floored Mathvalue
floored
count
count
count
pricing IChatEndpointTokenPricing
l10n
pricingdefaultinputPrice
pricingdefaultoutputPrice
input_price
cache_read_price
cache_price
cache_write_price
output_price
max_prompt_tokens
context_max
batch_size
input_price
cache_price
output_price
IRawTokenPriceTier
long_context IRawTokenPriceTier
inputPrice
outputPrice
cachePrice
cacheWritePrice
contextMax
INormalizedPriceTier
longContext INormalizedPriceTier
tokenPrices IRawTokenPrices INormalizedTokenPricing
tokenPrices
batchSize tokenPricesbatch_size
scale batchSize
defaultTier tokenPricesdefault
defaultTier defaultTierinput_price defaultTieroutput_price
cacheReadPrice tier IRawTokenPriceTier
raw tiercache_read_price tiercache_price
raw raw scale
normalized INormalizedPriceTier
inputPrice defaultTierinput_price scale
outputPrice defaultTieroutput_price scale
cachePrice defaultTier
cacheWritePrice defaultTiercache_write_price defaultTiercache_write_price scale
contextMax defaultTiermax_prompt_tokens defaultTiercontext_max
longContext INormalizedPriceTier
lc tokenPriceslong_context
lc lcinput_price lcoutput_price
lcNormalized INormalizedPriceTier
inputPrice lcinput_price scale
outputPrice lcoutput_price scale
cachePrice lc
cacheWritePrice lccache_write_price lccache_write_price scale
contextMax lcmax_prompt_tokens lccontext_max
lcNormalizedinputPrice normalizedinputPrice
lcNormalizedoutputPrice normalizedoutputPrice
lcNormalizedcachePrice normalizedcachePrice
lcNormalizedcacheWritePrice normalizedcacheWritePrice
longContext lcNormalized
normalized longContext
tokenPricesinput_price tokenPricesoutput_price
inputPrice tokenPricesinput_price scale
outputPrice tokenPricesoutput_price scale
cachePrice tokenPricescache_price tokenPricescache_price scale
cacheWritePrice