@mcowger/oh-my-pi-plexus 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extension.js +3 -0
- package/package.json +1 -1
package/dist/extension.js
CHANGED
|
@@ -16118,6 +16118,7 @@ function resolvePricingTiers(model) {
|
|
|
16118
16118
|
function convertToDescriptor(raw, baseUrl) {
|
|
16119
16119
|
const preferredApi = mapPreferredApi(raw.preferred_api);
|
|
16120
16120
|
const adjustedBaseUrl = adjustBaseUrl(baseUrl, preferredApi);
|
|
16121
|
+
const shortName = typeof raw.short_name === "string" ? raw.short_name.trim() : "";
|
|
16121
16122
|
const contextWindow = resolveContextWindow(raw);
|
|
16122
16123
|
const maxTokens = resolveMaxTokens(raw);
|
|
16123
16124
|
const tiers = resolvePricingTiers(raw);
|
|
@@ -16139,6 +16140,8 @@ function convertToDescriptor(raw, baseUrl) {
|
|
|
16139
16140
|
contextWindow,
|
|
16140
16141
|
maxTokens
|
|
16141
16142
|
};
|
|
16143
|
+
if (shortName)
|
|
16144
|
+
descriptor.shortName = shortName;
|
|
16142
16145
|
if (raw.pi_provider)
|
|
16143
16146
|
descriptor.piProvider = raw.pi_provider;
|
|
16144
16147
|
if (raw.pi_model)
|