Skip to content

Commit 402e32a

Browse files
committed
Update orchestration based on v0.61.1
1 parent bc51f59 commit 402e32a

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

packages/orchestration/src/client/api/schema/function-object.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export type FunctionObject = {
1414
description?: string;
1515
/**
1616
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
17+
* Max Length: 64.
18+
* Pattern: "^[a-zA-Z0-9-_]+$".
1719
*/
1820
name: string;
1921
parameters?: FunctionParameters;

packages/orchestration/src/client/api/schema/global-stream-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
export type GlobalStreamOptions = {
1111
/**
12-
* Number of characters per chunk that post-LLM modules operate on.
12+
* Minimum number of characters per chunk that post-LLM modules operate on.
1313
* Default: 100.
1414
* Maximum: 10000.
1515
* Minimum: 1.

packages/orchestration/src/client/api/schema/response-format-json-schema.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export type ResponseFormatJsonSchema = {
1919
description?: string;
2020
/**
2121
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
22+
* Max Length: 64.
23+
* Pattern: "^[a-zA-Z0-9-_]+$".
2224
*/
2325
name: string;
2426
schema?: ResponseFormatJsonSchemaSchema;

packages/orchestration/src/spec/api.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22

33
info:
44
title: Internal Orchestration Service API
5-
description: SAP AI Core - Orchestration Service API
5+
description: Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
66
contact:
77
name: SAP AI Core
88
version: 0.0.1
@@ -262,6 +262,7 @@ components:
262262
$ref: '#/components/schemas/LLMModuleResult'
263263

264264
CompletionPostResponseStreaming:
265+
# TODO: This seems unused in the spec, but used in our endpoints.py, related to Github #778
265266
type: object
266267
required:
267268
- request_id
@@ -338,7 +339,7 @@ components:
338339
properties:
339340
chunk_size:
340341
type: integer
341-
description: Number of characters per chunk that post-LLM modules operate on.
342+
description: Minimum number of characters per chunk that post-LLM modules operate on.
342343
default: 100
343344
minimum: 1
344345
maximum: 10000 # currently determined by max_size of ACS text records
@@ -624,6 +625,8 @@ components:
624625
description:
625626
The name of the response format. Must be a-z, A-Z, 0-9, or contain
626627
underscores and dashes, with a maximum length of 64.
628+
pattern: '^[a-zA-Z0-9-_]+$'
629+
maxLength: 64
627630
schema:
628631
$ref: '#/components/schemas/ResponseFormatJsonSchemaSchema'
629632
strict:
@@ -675,6 +678,8 @@ components:
675678
description:
676679
The name of the function to be called. Must be a-z, A-Z, 0-9, or
677680
contain underscores and dashes, with a maximum length of 64.
681+
pattern: '^[a-zA-Z0-9-_]+$'
682+
maxLength: 64
678683
parameters:
679684
$ref: '#/components/schemas/FunctionParameters'
680685
strict:

0 commit comments

Comments
 (0)