Skip to content

Commit 812c31b

Browse files
committed
Update prompt-registry based on main
1 parent 3673aa1 commit 812c31b

File tree

5 files changed

+7
-33
lines changed

5 files changed

+7
-33
lines changed

packages/prompt-registry/src/client/prompt-registry/orchestration-configs-api.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const OrchestrationConfigsApi = {
1919
_defaultBasePath: undefined,
2020
/**
2121
* List orchestration configs
22-
* @param queryParameters - Object containing the following keys: scenario, name, version, model_name, retrieve, include_spec, resolve_template_ref.
22+
* @param queryParameters - Object containing the following keys: scenario, name, version, retrieve, include_spec, resolve_template_ref.
2323
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
2424
* @returns The request builder, use the `execute()` method to trigger the request.
2525
*/
@@ -28,7 +28,6 @@ export const OrchestrationConfigsApi = {
2828
scenario?: string;
2929
name?: string;
3030
version?: string;
31-
model_name?: string;
3231
retrieve?: 'both' | 'imperative' | 'declarative';
3332
include_spec?: boolean;
3433
resolve_template_ref?: boolean;
@@ -68,7 +67,6 @@ export const OrchestrationConfigsApi = {
6867
* @param scenario - Path parameter.
6968
* @param version - Path parameter.
7069
* @param name - Path parameter.
71-
* @param modelName - Path parameter.
7270
* @param queryParameters - Object containing the following keys: include_spec, resolve_template_ref.
7371
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
7472
* @returns The request builder, use the `execute()` method to trigger the request.
@@ -77,7 +75,6 @@ export const OrchestrationConfigsApi = {
7775
scenario: string,
7876
version: string,
7977
name: string,
80-
modelName: string,
8178
queryParameters?: {
8279
include_spec?: boolean;
8380
resolve_template_ref?: boolean;
@@ -86,9 +83,9 @@ export const OrchestrationConfigsApi = {
8683
) =>
8784
new OpenApiRequestBuilder<OrchestrationConfigListResponse>(
8885
'get',
89-
'/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/models/{modelName}/history',
86+
'/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/history',
9087
{
91-
pathParameters: { scenario, version, name, modelName },
88+
pathParameters: { scenario, version, name },
9289
queryParameters,
9390
headerParameters
9491
},

packages/prompt-registry/src/client/prompt-registry/schema/orchestration-config-get-response.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export type OrchestrationConfigGetResponse = {
1515
name?: string;
1616
version?: string;
1717
scenario?: string;
18-
model_name?: string;
1918
/**
2019
* Format: "timestamp".
2120
*/

packages/prompt-registry/src/client/prompt-registry/schema/orchestration-config-post-response.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ export type OrchestrationConfigPostResponse = {
1616
scenario: string;
1717
name: string;
1818
version: string;
19-
model_name: string;
2019
} & Record<string, any>;

packages/prompt-registry/src/spec/prompt-registry.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,6 @@ paths:
370370
in: query
371371
schema:
372372
type: string
373-
- name: model_name
374-
in: query
375-
schema:
376-
type: string
377373
- name: retrieve
378374
in: query
379375
schema:
@@ -406,7 +402,7 @@ paths:
406402
$ref: '#/components/responses/ForbiddenError'
407403
default:
408404
$ref: '#/components/responses/CommonError'
409-
/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/models/{model_name}/history:
405+
/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/history:
410406
get:
411407
operationId: registry.controller.orchestration_config_controller.list_orchestration_config_history
412408
x-sap-cloud-sdk-operation-name: listOrchestrationConfigHistory
@@ -430,11 +426,6 @@ paths:
430426
required: true
431427
schema:
432428
type: string
433-
- name: model_name
434-
in: path
435-
required: true
436-
schema:
437-
type: string
438429
- name: include_spec
439430
in: query
440431
schema:
@@ -963,7 +954,6 @@ components:
963954
- scenario
964955
- name
965956
- version
966-
- model_name
967957
properties:
968958
message:
969959
type: string
@@ -976,8 +966,6 @@ components:
976966
type: string
977967
version:
978968
type: string
979-
model_name:
980-
type: string
981969
OrchestrationConfigGetResponse:
982970
type: object
983971
properties:
@@ -990,8 +978,6 @@ components:
990978
type: string
991979
scenario:
992980
type: string
993-
model_name:
994-
type: string
995981
creation_timestamp:
996982
type: string
997983
format: timestamp

packages/prompt-registry/src/zod/prompt-registry.zod.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2423,8 +2423,7 @@ export const registryControllerOrchestrationConfigControllerCreateUpdateOrchestr
24232423
id: zod.string().uuid(),
24242424
scenario: zod.string(),
24252425
name: zod.string(),
2426-
version: zod.string(),
2427-
model_name: zod.string()
2426+
version: zod.string()
24282427
});
24292428

24302429
/**
@@ -2440,7 +2439,6 @@ export const registryControllerOrchestrationConfigControllerListOrchestrationCon
24402439
scenario: zod.string().optional(),
24412440
name: zod.string().optional(),
24422441
version: zod.string().optional(),
2443-
model_name: zod.string().optional(),
24442442
retrieve: zod
24452443
.enum(['both', 'imperative', 'declarative'])
24462444
.default(
@@ -2508,7 +2506,6 @@ export const registryControllerOrchestrationConfigControllerListOrchestrationCon
25082506
name: zod.string().optional(),
25092507
version: zod.string().optional(),
25102508
scenario: zod.string().optional(),
2511-
model_name: zod.string().optional(),
25122509
creation_timestamp: zod.string().optional(),
25132510
managed_by: zod.string().optional(),
25142511
is_version_head: zod.boolean().optional(),
@@ -3524,8 +3521,7 @@ export const registryControllerOrchestrationConfigControllerListOrchestrationCon
35243521
zod.object({
35253522
scenario: zod.string(),
35263523
version: zod.string(),
3527-
name: zod.string(),
3528-
model_name: zod.string()
3524+
name: zod.string()
35293525
});
35303526

35313527
export const registryControllerOrchestrationConfigControllerListOrchestrationConfigHistoryQueryIncludeSpecDefault = false;
@@ -3595,7 +3591,6 @@ export const registryControllerOrchestrationConfigControllerListOrchestrationCon
35953591
name: zod.string().optional(),
35963592
version: zod.string().optional(),
35973593
scenario: zod.string().optional(),
3598-
model_name: zod.string().optional(),
35993594
creation_timestamp: zod.string().optional(),
36003595
managed_by: zod.string().optional(),
36013596
is_version_head: zod.boolean().optional(),
@@ -4674,7 +4669,6 @@ export const registryControllerOrchestrationConfigControllerGetOrchestrationConf
46744669
name: zod.string().optional(),
46754670
version: zod.string().optional(),
46764671
scenario: zod.string().optional(),
4677-
model_name: zod.string().optional(),
46784672
creation_timestamp: zod.string().optional(),
46794673
managed_by: zod.string().optional(),
46804674
is_version_head: zod.boolean().optional(),
@@ -5704,8 +5698,7 @@ export const registryControllerOrchestrationConfigControllerImportOrchestrationC
57045698
id: zod.string().uuid(),
57055699
scenario: zod.string(),
57065700
name: zod.string(),
5707-
version: zod.string(),
5708-
model_name: zod.string()
5701+
version: zod.string()
57095702
});
57105703

57115704
/**

0 commit comments

Comments
 (0)