Skip to content

Commit 59ce634

Browse files
feat: Update prompt-registry specification (#601)
* Update prompt-registry based on main * Update packages/prompt-registry/src/spec/prompt-registry.yaml * Update packages/prompt-registry/src/client/prompt-registry/schema/prompt-template-spec.ts --------- Co-authored-by: Zhongpin Wang <[email protected]>
1 parent 2ae33cb commit 59ce634

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/prompt-registry/src/client/prompt-registry/schema/prompt-template-spec.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ import type { ChatCompletionTool } from './chat-completion-tool.js';
1414
export type PromptTemplateSpec = {
1515
template: Template[];
1616
defaults?: Record<string, any>;
17+
/**
18+
* DEPRECATED. Use additional properties instead.
19+
*
20+
* @deprecated
21+
*/
1722
additionalFields?: Record<string, any>;
1823
/**
1924
* Response format that the model output should adhere to. This is the same as the OpenAI definition.
@@ -29,4 +34,4 @@ export type PromptTemplateSpec = {
2934
*
3035
*/
3136
tools?: ChatCompletionTool[];
32-
} & Record<string, any>;
37+
} & Record<string, Record<string, any>>;

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

+5
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,8 @@ components:
374374
type: object
375375
required:
376376
- template
377+
additionalProperties:
378+
type: object
377379
properties:
378380
template:
379381
type: array
@@ -383,6 +385,9 @@ components:
383385
type: object
384386
additionalFields:
385387
type: object
388+
description: >
389+
DEPRECATED. Use additional properties instead.
390+
deprecated: true
386391
response_format:
387392
description: >
388393
Response format that the model output should adhere to.

0 commit comments

Comments
 (0)