Skip to content

Commit 1197c8e

Browse files
authored
📝 Add optional tools to chat detections (foundation-model-stack#335)
Signed-off-by: Evaline Ju <[email protected]>
1 parent ec78d00 commit 1197c8e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/api/openapi_detector_api.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,15 @@ components:
243243
allOf:
244244
- $ref: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml#/components/schemas/ChatCompletionRequestMessage
245245
- type: object
246+
tools:
247+
type: array
248+
description: >
249+
From OpenAI, A list of tools the model may call. Currently, only functions
250+
are supported as a tool. Use this to provide a list of functions
251+
the model may generate JSON inputs for. A max of 128 functions
252+
are supported.
253+
items:
254+
$ref: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml#/components/schemas/ChatCompletionTool
246255
detector_params:
247256
type: object
248257
default: {}

docs/api/orchestrator_openapi_0_1_0.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,15 @@ components:
507507
allOf:
508508
- $ref: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml#/components/schemas/ChatCompletionRequestMessage
509509
- type: object
510+
tools:
511+
type: array
512+
description: >
513+
From OpenAI, A list of tools the model may call. Currently, only functions
514+
are supported as a tool. Use this to provide a list of functions
515+
the model may generate JSON inputs for. A max of 128 functions
516+
are supported.
517+
items:
518+
$ref: https://raw.githubusercontent.com/openai/openai-openapi/master/openapi.yaml#/components/schemas/ChatCompletionTool
510519
additionalProperties: false
511520
required: ["detectors", "messages"]
512521
type: object

0 commit comments

Comments
 (0)