You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/node-service/src/plugins/openAi/openAi.yaml
+35-35Lines changed: 35 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -1137,7 +1137,7 @@ paths:
1137
1137
summary: |
1138
1138
Answers the specified question using the provided documents and examples.
1139
1139
1140
-
The endpoint first [searches](/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](/docs/api-reference/completions).
1140
+
The endpoint first [searches](https://platform.openai.com/docs/api-reference/searches) over provided documents or files to find relevant context. The relevant context is combined with the provided examples and question to create the prompt for [completion](https://platform.openai.com/docs/api-reference/completions).
1141
1141
requestBody:
1142
1142
required: true
1143
1143
content:
@@ -1243,10 +1243,10 @@ paths:
1243
1243
summary: |
1244
1244
Classifies the specified `query` using provided examples.
1245
1245
1246
-
The endpoint first [searches](/docs/api-reference/searches) over the labeled examples
1246
+
The endpoint first [searches](https://platform.openai.com/docs/api-reference/searches) over the labeled examples
1247
1247
to select the ones most relevant for the particular query. Then, the relevant examples
1248
1248
are combined with the query to construct a prompt to produce the final label via the
Labeled examples can be provided via an uploaded `file`, or explicitly listed in the
1252
1252
request using the `examples` parameter for quick tests and small scale use cases.
@@ -1363,7 +1363,7 @@ paths:
1363
1363
1364
1364
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
1365
1365
1366
-
[Learn more about Fine-tuning](/docs/guides/fine-tuning)
1366
+
[Learn more about Fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
1367
1367
requestBody:
1368
1368
required: true
1369
1369
content:
@@ -1505,7 +1505,7 @@ paths:
1505
1505
summary: |
1506
1506
Gets info about the fine-tune job.
1507
1507
1508
-
[Learn more about Fine-tuning](/docs/guides/fine-tuning)
1508
+
[Learn more about Fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
1509
1509
parameters:
1510
1510
- in: path
1511
1511
name: fine_tune_id
@@ -2063,7 +2063,7 @@ components:
2063
2063
type: object
2064
2064
properties:
2065
2065
model: &model_configuration
2066
-
description: ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them.
2066
+
description: ID of the model to use. You can use the [List models](https://platform.openai.com/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](https://platform.openai.com/docs/models/overview) for descriptions of them.
Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
2193
2193
2194
-
[See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)
2194
+
[See more information about frequency and presence penalties.](https://platform.openai.com/docs/api-reference/parameter-details)
Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
2203
2203
2204
-
[See more information about frequency and presence penalties.](/docs/api-reference/parameter-details)
2204
+
[See more information about frequency and presence penalties.](https://platform.openai.com/docs/api-reference/parameter-details)
2205
2205
best_of:
2206
2206
type: integer
2207
2207
default: 1
@@ -2229,7 +2229,7 @@ components:
2229
2229
type: string
2230
2230
example: user-1234
2231
2231
description: |
2232
-
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).
2232
+
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids).
2233
2233
required:
2234
2234
- model
2235
2235
@@ -2333,7 +2333,7 @@ components:
2333
2333
description: ID of the model to use. Currently, only `gpt-3.5-turbo` and `gpt-3.5-turbo-0301` are supported.
2334
2334
type: string
2335
2335
messages:
2336
-
description: The messages to generate chat completions for, in the [chat format](/docs/guides/chat/introduction).
2336
+
description: The messages to generate chat completions for, in the [chat format](https://platform.openai.com/docs/guides/chat/introduction).
2337
2337
type: array
2338
2338
minItems: 1
2339
2339
items:
@@ -2833,14 +2833,14 @@ components:
2833
2833
description: |
2834
2834
Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded.
2835
2835
2836
-
If the `purpose` is set to "fine-tune", each line is a JSON record with "prompt" and "completion" fields representing your [training examples](/docs/guides/fine-tuning/prepare-training-data).
2836
+
If the `purpose` is set to "fine-tune", each line is a JSON record with "prompt" and "completion" fields representing your [training examples](https://platform.openai.com/docs/guides/fine-tuning/prepare-training-data).
2837
2837
type: string
2838
2838
format: binary
2839
2839
purpose:
2840
2840
description: |
2841
2841
The intended purpose of the uploaded documents.
2842
2842
2843
-
Use "fine-tune" for [Fine-tuning](/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file.
2843
+
Use "fine-tune" for [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tunes). This allows us to validate the format of the uploaded file.
2844
2844
2845
2845
type: string
2846
2846
required:
@@ -2903,18 +2903,18 @@ components:
2903
2903
nullable: true
2904
2904
file:
2905
2905
description: |
2906
-
The ID of an uploaded file that contains documents to search over. See [upload file](/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose.
2906
+
The ID of an uploaded file that contains documents to search over. See [upload file](https://platform.openai.com/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose.
2907
2907
2908
2908
You should specify either `documents` or a `file`, but not both.
2909
2909
type: string
2910
2910
nullable: true
2911
2911
search_model: &search_model_configuration
2912
-
description: ID of the model to use for [Search](/docs/api-reference/searches/create). You can select one of `ada`, `babbage`, `curie`, or `davinci`.
2912
+
description: ID of the model to use for [Search](https://platform.openai.com/docs/api-reference/searches/create). You can select one of `ada`, `babbage`, `curie`, or `davinci`.
2913
2913
type: string
2914
2914
default: ada
2915
2915
nullable: true
2916
2916
max_rerank:
2917
-
description: The maximum number of documents to be ranked by [Search](/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost.
2917
+
description: The maximum number of documents to be ranked by [Search](https://platform.openai.com/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost.
2918
2918
type: integer
2919
2919
default: 200
2920
2920
nullable: true
@@ -3039,7 +3039,7 @@ components:
3039
3039
nullable: true
3040
3040
file:
3041
3041
description: |
3042
-
The ID of the uploaded file that contains training examples. See [upload file](/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose.
3042
+
The ID of the uploaded file that contains training examples. See [upload file](https://platform.openai.com/docs/api-reference/files/upload) for how to upload a file of the desired format and purpose.
3043
3043
3044
3044
You should specify either `examples` or `file`, but not both.
description: The maximum number of examples to be ranked by [Search](/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost.
3068
+
description: The maximum number of examples to be ranked by [Search](https://platform.openai.com/docs/api-reference/searches/create) when using `file`. Setting it to a higher value leads to improved accuracy but with increased latency and cost.
3069
3069
type: integer
3070
3070
default: 200
3071
3071
nullable: true
@@ -3110,13 +3110,13 @@ components:
3110
3110
description: |
3111
3111
The ID of an uploaded file that contains training data.
3112
3112
3113
-
See [upload file](/docs/api-reference/files/upload) for how to upload a file.
3113
+
See [upload file](https://platform.openai.com/docs/api-reference/files/upload) for how to upload a file.
3114
3114
3115
3115
Your dataset must be formatted as a JSONL file, where each training
3116
3116
example is a JSON object with the keys "prompt" and "completion".
3117
3117
Additionally, you must upload your file with the purpose `fine-tune`.
3118
3118
3119
-
See the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details.
3119
+
See the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning/creating-training-data) for more details.
3120
3120
type: string
3121
3121
example: "file-ajSREls59WBbvgSzJSVWxMCB"
3122
3122
validation_file:
@@ -3125,14 +3125,14 @@ components:
3125
3125
3126
3126
If you provide this file, the data is used to generate validation
3127
3127
metrics periodically during fine-tuning. These metrics can be viewed in
3128
-
the [fine-tuning results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).
3128
+
the [fine-tuning results file](https://platform.openai.com/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).
3129
3129
Your train and validation data should be mutually exclusive.
3130
3130
3131
3131
Your dataset must be formatted as a JSONL file, where each validation
3132
3132
example is a JSON object with the keys "prompt" and "completion".
3133
3133
Additionally, you must upload your file with the purpose `fine-tune`.
3134
3134
3135
-
See the [fine-tuning guide](/docs/guides/fine-tuning/creating-training-data) for more details.
3135
+
See the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning/creating-training-data) for more details.
3136
3136
type: string
3137
3137
nullable: true
3138
3138
example: "file-XjSREls59WBbvgSzJSVWxMCa"
@@ -3195,7 +3195,7 @@ components:
3195
3195
description: |
3196
3196
If set, we calculate classification-specific metrics such as accuracy
3197
3197
and F-1 score using the validation set at the end of every epoch.
3198
-
These metrics can be viewed in the [results file](/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).
3198
+
These metrics can be viewed in the [results file](https://platform.openai.com/docs/guides/fine-tuning/analyzing-your-fine-tuned-model).
3199
3199
3200
3200
In order to compute classification metrics, you must provide a
3201
3201
`validation_file`. Additionally, you must
@@ -3367,7 +3367,7 @@ components:
3367
3367
type: string
3368
3368
prompt:
3369
3369
description: |
3370
-
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
3370
+
An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text/prompting) should match the audio language.
3371
3371
type: string
3372
3372
response_format:
3373
3373
description: |
@@ -3411,7 +3411,7 @@ components:
3411
3411
type: string
3412
3412
prompt:
3413
3413
description: |
3414
-
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
3414
+
An optional text to guide the model's style or continue a previous audio segment. The [prompt](https://platform.openai.com/docs/guides/speech-to-text/prompting) should be in English.
3415
3415
type: string
3416
3416
response_format:
3417
3417
description: |
@@ -3573,7 +3573,7 @@ x-oaiMeta:
3573
3573
- id: models
3574
3574
title: Models
3575
3575
description: |
3576
-
List and describe the various models available in the API. You can refer to the [Models](/docs/models) documentation to understand what models are available and the differences between them.
3576
+
List and describe the various models available in the API. You can refer to the [Models](https://platform.openai.com/docs/models) documentation to understand what models are available and the differences between them.
3577
3577
- id: completions
3578
3578
title: Completions
3579
3579
description: |
@@ -3591,35 +3591,35 @@ x-oaiMeta:
3591
3591
description: |
3592
3592
Given a prompt and/or an input image, the model will generate a new image.
3593
3593
3594
-
Related guide: [Image generation](/docs/guides/images)
3594
+
Related guide: [Image generation](https://platform.openai.com/docs/guides/images)
3595
3595
- id: embeddings
3596
3596
title: Embeddings
3597
3597
description: |
3598
3598
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
3599
3599
3600
-
Related guide: [Embeddings](/docs/guides/embeddings)
3600
+
Related guide: [Embeddings](https://platform.openai.com/docs/guides/embeddings)
3601
3601
- id: audio
3602
3602
title: Audio
3603
3603
description: |
3604
3604
Learn how to turn audio into text.
3605
3605
3606
-
Related guide: [Speech to text](/docs/guides/speech-to-text)
3606
+
Related guide: [Speech to text](https://platform.openai.com/docs/guides/speech-to-text)
3607
3607
- id: files
3608
3608
title: Files
3609
3609
description: |
3610
-
Files are used to upload documents that can be used with features like [Fine-tuning](/docs/api-reference/fine-tunes).
3610
+
Files are used to upload documents that can be used with features like [Fine-tuning](https://platform.openai.com/docs/api-reference/fine-tunes).
3611
3611
- id: fine-tunes
3612
3612
title: Fine-tunes
3613
3613
description: |
3614
3614
Manage fine-tuning jobs to tailor a model to your specific training data.
3615
3615
3616
-
Related guide: [Fine-tune models](/docs/guides/fine-tuning)
3616
+
Related guide: [Fine-tune models](https://platform.openai.com/docs/guides/fine-tuning)
3617
3617
- id: moderations
3618
3618
title: Moderations
3619
3619
description: |
3620
3620
Given a input text, outputs if the model classifies it as violating OpenAI's content policy.
3621
3621
3622
-
Related guide: [Moderations](/docs/guides/moderation)
3622
+
Related guide: [Moderations](https://platform.openai.com/docs/guides/moderation)
3623
3623
- id: searches
3624
3624
title: Searches
3625
3625
warning:
@@ -3628,7 +3628,7 @@ x-oaiMeta:
3628
3628
description: |
3629
3629
Given a query and a set of documents or labels, the model ranks each document based on its semantic similarity to the provided query.
3630
3630
3631
-
Related guide: [Search](/docs/guides/search)
3631
+
Related guide: [Search](https://platform.openai.com/docs/guides/search)
3632
3632
- id: classifications
3633
3633
title: Classifications
3634
3634
warning:
@@ -3637,7 +3637,7 @@ x-oaiMeta:
3637
3637
description: |
3638
3638
Given a query and a set of labeled examples, the model will predict the most likely label for the query. Useful as a drop-in replacement for any ML classification or text-to-label task.
3639
3639
3640
-
Related guide: [Classification](/docs/guides/classifications)
3640
+
Related guide: [Classification](https://platform.openai.com/docs/guides/classifications)
3641
3641
- id: answers
3642
3642
title: Answers
3643
3643
warning:
@@ -3646,10 +3646,10 @@ x-oaiMeta:
3646
3646
description: |
3647
3647
Given a question, a set of documents, and some examples, the API generates an answer to the question based on the information in the set of documents. This is useful for question-answering applications on sources of truth, like company documentation or a knowledge base.
3648
3648
3649
-
Related guide: [Question answering](/docs/guides/answers)
3649
+
Related guide: [Question answering](https://platform.openai.com/docs/guides/answers)
3650
3650
- id: engines
3651
3651
title: Engines
3652
3652
description: These endpoints describe and provide access to the various engines available in the API.
3653
3653
warning:
3654
3654
title: The Engines endpoints are deprecated.
3655
-
message: Please use their replacement, [Models](/docs/api-reference/models), instead. [Learn more](https://help.openai.com/TODO).
3655
+
message: Please use their replacement, [Models](https://platform.openai.com/docs/api-reference/models), instead. [Learn more](https://help.openai.com/TODO).
0 commit comments