Skip to content

Commit 990d525

Browse files
author
sunlei
committed
fix open ai datasource doc links
1 parent 227d506 commit 990d525

File tree

2 files changed

+35
-36
lines changed

2 files changed

+35
-36
lines changed

server/node-service/src/plugins/openAi/openAi.yaml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ paths:
11371137
summary: |
11381138
Answers the specified question using the provided documents and examples.
11391139
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).
11411141
requestBody:
11421142
required: true
11431143
content:
@@ -1243,10 +1243,10 @@ paths:
12431243
summary: |
12441244
Classifies the specified `query` using provided examples.
12451245
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
12471247
to select the ones most relevant for the particular query. Then, the relevant examples
12481248
are combined with the query to construct a prompt to produce the final label via the
1249-
[completions](/docs/api-reference/completions) endpoint.
1249+
[completions](https://platform.openai.com/docs/api-reference/completions) endpoint.
12501250
12511251
Labeled examples can be provided via an uploaded `file`, or explicitly listed in the
12521252
request using the `examples` parameter for quick tests and small scale use cases.
@@ -1363,7 +1363,7 @@ paths:
13631363
13641364
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
13651365
1366-
[Learn more about Fine-tuning](/docs/guides/fine-tuning)
1366+
[Learn more about Fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
13671367
requestBody:
13681368
required: true
13691369
content:
@@ -1505,7 +1505,7 @@ paths:
15051505
summary: |
15061506
Gets info about the fine-tune job.
15071507
1508-
[Learn more about Fine-tuning](/docs/guides/fine-tuning)
1508+
[Learn more about Fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
15091509
parameters:
15101510
- in: path
15111511
name: fine_tune_id
@@ -2063,7 +2063,7 @@ components:
20632063
type: object
20642064
properties:
20652065
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.
20672067
type: string
20682068
prompt:
20692069
description: &completions_prompt_description |
@@ -2191,7 +2191,7 @@ components:
21912191
description: &completions_presence_penalty_description |
21922192
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.
21932193

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)
21952195
frequency_penalty:
21962196
type: number
21972197
default: 0
@@ -2201,7 +2201,7 @@ components:
22012201
description: &completions_frequency_penalty_description |
22022202
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.
22032203

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)
22052205
best_of:
22062206
type: integer
22072207
default: 1
@@ -2229,7 +2229,7 @@ components:
22292229
type: string
22302230
example: user-1234
22312231
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).
22332233
required:
22342234
- model
22352235

@@ -2333,7 +2333,7 @@ components:
23332333
description: ID of the model to use. Currently, only `gpt-3.5-turbo` and `gpt-3.5-turbo-0301` are supported.
23342334
type: string
23352335
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).
23372337
type: array
23382338
minItems: 1
23392339
items:
@@ -2833,14 +2833,14 @@ components:
28332833
description: |
28342834
Name of the [JSON Lines](https://jsonlines.readthedocs.io/en/latest/) file to be uploaded.
28352835
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).
28372837
type: string
28382838
format: binary
28392839
purpose:
28402840
description: |
28412841
The intended purpose of the uploaded documents.
28422842
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.
28442844
28452845
type: string
28462846
required:
@@ -2903,18 +2903,18 @@ components:
29032903
nullable: true
29042904
file:
29052905
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.
29072907
29082908
You should specify either `documents` or a `file`, but not both.
29092909
type: string
29102910
nullable: true
29112911
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`.
29132913
type: string
29142914
default: ada
29152915
nullable: true
29162916
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.
29182918
type: integer
29192919
default: 200
29202920
nullable: true
@@ -3039,7 +3039,7 @@ components:
30393039
nullable: true
30403040
file:
30413041
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.
30433043
30443044
You should specify either `examples` or `file`, but not both.
30453045
type: string
@@ -3065,7 +3065,7 @@ components:
30653065
example: 0
30663066
logprobs: *context_completions_logprobs_configuration
30673067
max_examples:
3068-
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.
30693069
type: integer
30703070
default: 200
30713071
nullable: true
@@ -3110,13 +3110,13 @@ components:
31103110
description: |
31113111
The ID of an uploaded file that contains training data.
31123112
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.
31143114
31153115
Your dataset must be formatted as a JSONL file, where each training
31163116
example is a JSON object with the keys "prompt" and "completion".
31173117
Additionally, you must upload your file with the purpose `fine-tune`.
31183118
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.
31203120
type: string
31213121
example: "file-ajSREls59WBbvgSzJSVWxMCB"
31223122
validation_file:
@@ -3125,14 +3125,14 @@ components:
31253125
31263126
If you provide this file, the data is used to generate validation
31273127
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).
31293129
Your train and validation data should be mutually exclusive.
31303130
31313131
Your dataset must be formatted as a JSONL file, where each validation
31323132
example is a JSON object with the keys "prompt" and "completion".
31333133
Additionally, you must upload your file with the purpose `fine-tune`.
31343134
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.
31363136
type: string
31373137
nullable: true
31383138
example: "file-XjSREls59WBbvgSzJSVWxMCa"
@@ -3195,7 +3195,7 @@ components:
31953195
description: |
31963196
If set, we calculate classification-specific metrics such as accuracy
31973197
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).
31993199
32003200
In order to compute classification metrics, you must provide a
32013201
`validation_file`. Additionally, you must
@@ -3367,7 +3367,7 @@ components:
33673367
type: string
33683368
prompt:
33693369
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.
33713371
type: string
33723372
response_format:
33733373
description: |
@@ -3411,7 +3411,7 @@ components:
34113411
type: string
34123412
prompt:
34133413
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.
34153415
type: string
34163416
response_format:
34173417
description: |
@@ -3573,7 +3573,7 @@ x-oaiMeta:
35733573
- id: models
35743574
title: Models
35753575
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.
35773577
- id: completions
35783578
title: Completions
35793579
description: |
@@ -3591,35 +3591,35 @@ x-oaiMeta:
35913591
description: |
35923592
Given a prompt and/or an input image, the model will generate a new image.
35933593
3594-
Related guide: [Image generation](/docs/guides/images)
3594+
Related guide: [Image generation](https://platform.openai.com/docs/guides/images)
35953595
- id: embeddings
35963596
title: Embeddings
35973597
description: |
35983598
Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms.
35993599
3600-
Related guide: [Embeddings](/docs/guides/embeddings)
3600+
Related guide: [Embeddings](https://platform.openai.com/docs/guides/embeddings)
36013601
- id: audio
36023602
title: Audio
36033603
description: |
36043604
Learn how to turn audio into text.
36053605
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)
36073607
- id: files
36083608
title: Files
36093609
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).
36113611
- id: fine-tunes
36123612
title: Fine-tunes
36133613
description: |
36143614
Manage fine-tuning jobs to tailor a model to your specific training data.
36153615
3616-
Related guide: [Fine-tune models](/docs/guides/fine-tuning)
3616+
Related guide: [Fine-tune models](https://platform.openai.com/docs/guides/fine-tuning)
36173617
- id: moderations
36183618
title: Moderations
36193619
description: |
36203620
Given a input text, outputs if the model classifies it as violating OpenAI's content policy.
36213621
3622-
Related guide: [Moderations](/docs/guides/moderation)
3622+
Related guide: [Moderations](https://platform.openai.com/docs/guides/moderation)
36233623
- id: searches
36243624
title: Searches
36253625
warning:
@@ -3628,7 +3628,7 @@ x-oaiMeta:
36283628
description: |
36293629
Given a query and a set of documents or labels, the model ranks each document based on its semantic similarity to the provided query.
36303630
3631-
Related guide: [Search](/docs/guides/search)
3631+
Related guide: [Search](https://platform.openai.com/docs/guides/search)
36323632
- id: classifications
36333633
title: Classifications
36343634
warning:
@@ -3637,7 +3637,7 @@ x-oaiMeta:
36373637
description: |
36383638
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.
36393639
3640-
Related guide: [Classification](/docs/guides/classifications)
3640+
Related guide: [Classification](https://platform.openai.com/docs/guides/classifications)
36413641
- id: answers
36423642
title: Answers
36433643
warning:
@@ -3646,10 +3646,10 @@ x-oaiMeta:
36463646
description: |
36473647
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.
36483648
3649-
Related guide: [Question answering](/docs/guides/answers)
3649+
Related guide: [Question answering](https://platform.openai.com/docs/guides/answers)
36503650
- id: engines
36513651
title: Engines
36523652
description: These endpoints describe and provide access to the various engines available in the API.
36533653
warning:
36543654
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).

server/node-service/src/plugins/openApi/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ export async function runOpenApi(
112112
...headers,
113113
},
114114
};
115-
console.info(ret);
116115
return ret;
117116
},
118117
});

0 commit comments

Comments
 (0)