Skip to content

Commit

Permalink
remove quote
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfryan committed Jun 12, 2024
1 parent 33d5c27 commit dd73070
Showing 1 changed file with 63 additions and 49 deletions.
112 changes: 63 additions & 49 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7510,41 +7510,17 @@ components:
required:
- role

# TODO(apeng): This is only because we don't support tools yet. Use allOf once we do.
FineTuneChatCompletionRequestAssistantMessage:
type: object
title: Assistant message
properties:
content:
nullable: true
type: string
description: |
The contents of the assistant message. Required unless `function_call` is specified.
role:
type: string
enum: ["assistant"]
description: The role of the messages author, in this case `assistant`.
name:
type: string
description: An optional name for the participant. Provides the model information to differentiate between participants of the same role.
function_call:
type: object
description: The name and arguments of a function that should be called, as generated by the model.
nullable: true
properties:
arguments:
type: string
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.
name:
type: string
description: The name of the function to call.
required:
- arguments
- name
weight:
type: integer
enum: [0, 1]
description: "Controls whether the assistant message is trained against (0 or 1)"
allOf:
- type: object
title: Assistant message
deprecated: false
properties:
weight:
type: integer
enum: [0, 1]
description: "Controls whether the assistant message is trained against (0 or 1)"
- $ref: "#/components/schemas/ChatCompletionRequestAssistantMessage"
required:
- role

Expand Down Expand Up @@ -7587,14 +7563,6 @@ components:
- role
- content
- name

# TODO(apeng): This is only because we don't support tools yet. Add back deprecated once we do.
FineTuneChatCompletionRequestFunctionMessage:
allOf:
- type: object
title: Function message
deprecated: false
- $ref: "#/components/schemas/ChatCompletionRequestFunctionMessage"

FunctionParameters:
type: object
Expand Down Expand Up @@ -9670,9 +9638,18 @@ components:
- $ref: "#/components/schemas/ChatCompletionRequestSystemMessage"
- $ref: "#/components/schemas/ChatCompletionRequestUserMessage"
- $ref: "#/components/schemas/FineTuneChatCompletionRequestAssistantMessage"
- $ref: "#/components/schemas/FineTuneChatCompletionRequestFunctionMessage"
- $ref: "#/components/schemas/ChatCompletionRequestToolMessage"
- $ref: "#/components/schemas/ChatCompletionRequestFunctionMessage"
x-oaiExpandable: true
tools:
type: array
description: A list of tools the model may generate JSON inputs for.
items:
$ref: "#/components/schemas/ChatCompletionTool"
parallel_tool_calls:
$ref: "#/components/schemas/ParallelToolCalls"
functions:
deprecated: true
description:
A list of functions the model may generate JSON inputs for.
type: array
Expand All @@ -9683,7 +9660,45 @@ components:
x-oaiMeta:
name: Training format for chat models
example: |
{"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"]}}]}
{
"messages": [
{ "role": "user", "content": "What is the weather in San Francisco?" },
{
"role": "assistant",
"tool_calls": [
{
"id": "call_id",
"type": "function",
"function": {
"name": "get_current_weather",
"arguments": "{\"location\": \"San Francisco, USA\", \"format\": \"celsius\"}"
}
}
]
}
],
"parallel_tool_calls": false,
"tools": [
{
"type": "function",
"function": {
"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"]
}
}
}
]
}

FinetuneCompletionRequestInput:
type: object
Expand All @@ -9698,7 +9713,10 @@ components:
x-oaiMeta:
name: Training format for completions models
example: |
{"prompt": "What is the answer to 2+2", "completion": "4"}
{
"prompt": "What is the answer to 2+2",
"completion": "4"
}

CompletionUsage:
type: object
Expand Down Expand Up @@ -11614,12 +11632,8 @@ components:
file_id:
description: The ID of the specific File the citation is from.
type: string
quote:
description: The specific quote in the file.
type: string
required:
- file_id
- quote
start_index:
type: integer
minimum: 0
Expand Down

0 comments on commit dd73070

Please sign in to comment.