@opengeni/core 0.18.0 → 0.18.1
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/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/domain/sessions.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -3730,7 +3730,8 @@ import {
|
|
|
3730
3730
|
canonicalizeConfiguredModelId,
|
|
3731
3731
|
configuredAllowedModels,
|
|
3732
3732
|
policyProviderIdForModel,
|
|
3733
|
-
resolveTurnExecutionPolicyV1
|
|
3733
|
+
resolveTurnExecutionPolicyV1,
|
|
3734
|
+
WORKSPACE_GATEWAY_MODEL_ID_PREFIX
|
|
3734
3735
|
} from "@opengeni/config";
|
|
3735
3736
|
import {
|
|
3736
3737
|
CreateSessionRequest,
|
|
@@ -4309,6 +4310,9 @@ function canonicalConfiguredModel(settings, model) {
|
|
|
4309
4310
|
if (settings.codexSubscriptionEnabled && canonicalModel.startsWith(CODEX_MODEL_ID_PREFIX)) {
|
|
4310
4311
|
return canonicalModel;
|
|
4311
4312
|
}
|
|
4313
|
+
if (canonicalModel.startsWith(WORKSPACE_GATEWAY_MODEL_ID_PREFIX)) {
|
|
4314
|
+
return canonicalModel;
|
|
4315
|
+
}
|
|
4312
4316
|
throw new HTTPException10(422, { message: `model is not available: ${model}` });
|
|
4313
4317
|
}
|
|
4314
4318
|
function assertConfiguredModel(settings, model) {
|