Skip to content

Commit dd73070

Browse files
committed
remove quote
1 parent 33d5c27 commit dd73070

File tree

1 file changed

+63
-49
lines changed

1 file changed

+63
-49
lines changed

openapi.yaml

+63-49
Original file line numberDiff line numberDiff line change
@@ -7510,41 +7510,17 @@ components:
75107510
required:
75117511
- role
75127512

7513-
# TODO(apeng): This is only because we don't support tools yet. Use allOf once we do.
75147513
FineTuneChatCompletionRequestAssistantMessage:
7515-
type: object
7516-
title: Assistant message
7517-
properties:
7518-
content:
7519-
nullable: true
7520-
type: string
7521-
description: |
7522-
The contents of the assistant message. Required unless `function_call` is specified.
7523-
role:
7524-
type: string
7525-
enum: ["assistant"]
7526-
description: The role of the messages author, in this case `assistant`.
7527-
name:
7528-
type: string
7529-
description: An optional name for the participant. Provides the model information to differentiate between participants of the same role.
7530-
function_call:
7531-
type: object
7532-
description: The name and arguments of a function that should be called, as generated by the model.
7533-
nullable: true
7534-
properties:
7535-
arguments:
7536-
type: string
7537-
description: The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
7538-
name:
7539-
type: string
7540-
description: The name of the function to call.
7541-
required:
7542-
- arguments
7543-
- name
7544-
weight:
7545-
type: integer
7546-
enum: [0, 1]
7547-
description: "Controls whether the assistant message is trained against (0 or 1)"
7514+
allOf:
7515+
- type: object
7516+
title: Assistant message
7517+
deprecated: false
7518+
properties:
7519+
weight:
7520+
type: integer
7521+
enum: [0, 1]
7522+
description: "Controls whether the assistant message is trained against (0 or 1)"
7523+
- $ref: "#/components/schemas/ChatCompletionRequestAssistantMessage"
75487524
required:
75497525
- role
75507526

@@ -7587,14 +7563,6 @@ components:
75877563
- role
75887564
- content
75897565
- name
7590-
7591-
# TODO(apeng): This is only because we don't support tools yet. Add back deprecated once we do.
7592-
FineTuneChatCompletionRequestFunctionMessage:
7593-
allOf:
7594-
- type: object
7595-
title: Function message
7596-
deprecated: false
7597-
- $ref: "#/components/schemas/ChatCompletionRequestFunctionMessage"
75987566

75997567
FunctionParameters:
76007568
type: object
@@ -9670,9 +9638,18 @@ components:
96709638
- $ref: "#/components/schemas/ChatCompletionRequestSystemMessage"
96719639
- $ref: "#/components/schemas/ChatCompletionRequestUserMessage"
96729640
- $ref: "#/components/schemas/FineTuneChatCompletionRequestAssistantMessage"
9673-
- $ref: "#/components/schemas/FineTuneChatCompletionRequestFunctionMessage"
9641+
- $ref: "#/components/schemas/ChatCompletionRequestToolMessage"
9642+
- $ref: "#/components/schemas/ChatCompletionRequestFunctionMessage"
96749643
x-oaiExpandable: true
9644+
tools:
9645+
type: array
9646+
description: A list of tools the model may generate JSON inputs for.
9647+
items:
9648+
$ref: "#/components/schemas/ChatCompletionTool"
9649+
parallel_tool_calls:
9650+
$ref: "#/components/schemas/ParallelToolCalls"
96759651
functions:
9652+
deprecated: true
96769653
description:
96779654
A list of functions the model may generate JSON inputs for.
96789655
type: array
@@ -9683,7 +9660,45 @@ components:
96839660
x-oaiMeta:
96849661
name: Training format for chat models
96859662
example: |
9686-
{"messages":[{"role":"user","content":"What is the weather in San Francisco?"},{"role":"assistant","function_call":{"name":"get_current_weather","arguments":"{\"location\": \"San Francisco, USA\", \"format\": \"celsius\"}"}}],"functions":[{"name":"get_current_weather","description":"Get the current weather","parameters":{"type":"object","properties":{"location":{"type":"string","description":"The city and country, eg. San Francisco, USA"},"format":{"type":"string","enum":["celsius","fahrenheit"]}},"required":["location","format"]}}]}
9663+
{
9664+
"messages": [
9665+
{ "role": "user", "content": "What is the weather in San Francisco?" },
9666+
{
9667+
"role": "assistant",
9668+
"tool_calls": [
9669+
{
9670+
"id": "call_id",
9671+
"type": "function",
9672+
"function": {
9673+
"name": "get_current_weather",
9674+
"arguments": "{\"location\": \"San Francisco, USA\", \"format\": \"celsius\"}"
9675+
}
9676+
}
9677+
]
9678+
}
9679+
],
9680+
"parallel_tool_calls": false,
9681+
"tools": [
9682+
{
9683+
"type": "function",
9684+
"function": {
9685+
"name": "get_current_weather",
9686+
"description": "Get the current weather",
9687+
"parameters": {
9688+
"type": "object",
9689+
"properties": {
9690+
"location": {
9691+
"type": "string",
9692+
"description": "The city and country, eg. San Francisco, USA"
9693+
},
9694+
"format": { "type": "string", "enum": ["celsius", "fahrenheit"] }
9695+
},
9696+
"required": ["location", "format"]
9697+
}
9698+
}
9699+
}
9700+
]
9701+
}
96879702

96889703
FinetuneCompletionRequestInput:
96899704
type: object
@@ -9698,7 +9713,10 @@ components:
96989713
x-oaiMeta:
96999714
name: Training format for completions models
97009715
example: |
9701-
{"prompt": "What is the answer to 2+2", "completion": "4"}
9716+
{
9717+
"prompt": "What is the answer to 2+2",
9718+
"completion": "4"
9719+
}
97029720

97039721
CompletionUsage:
97049722
type: object
@@ -11614,12 +11632,8 @@ components:
1161411632
file_id:
1161511633
description: The ID of the specific File the citation is from.
1161611634
type: string
11617-
quote:
11618-
description: The specific quote in the file.
11619-
type: string
1162011635
required:
1162111636
- file_id
11622-
- quote
1162311637
start_index:
1162411638
type: integer
1162511639
minimum: 0

0 commit comments

Comments
 (0)