반응형
블로그 이미지
개발자로서 현장에서 일하면서 새로 접하는 기술들이나 알게된 정보 등을 정리하기 위한 블로그입니다. 운 좋게 미국에서 큰 회사들의 프로젝트에서 컬설턴트로 일하고 있어서 새로운 기술들을 접할 기회가 많이 있습니다. 미국의 IT 프로젝트에서 사용되는 툴들에 대해 많은 분들과 정보를 공유하고 싶습니다.
솔웅

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

카테고리

Edits - openai.Edit.create()

2023. 1. 17. 00:58 | Posted by 솔웅


반응형

https://beta.openai.com/docs/api-reference/edits

 

Create edit

POST https://api.openai.com/v1/edits

Creates a new edit for the provided input, instruction, and parameters

제공된 입력, 지침 및 매개변수에 대한 새 편집을 생성합니다.

 

Request body

model
string
Required

ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.

사용할 모델의 ID입니다. 모델 목록 API를 사용하여 사용 가능한 모든 모델을 보거나 모델 개요에서 설명을 볼 수 있습니다.

 

input
string
Optional
Defaults to ''

The input text to use as a starting point for the edit.

편집의 시작점으로 사용할 입력 텍스트입니다.

 

instruction
string
Required

The instruction that tells the model how to edit the prompt.

프롬프트를 편집하는 방법을 모델에 알려주는 명령입니다.

 

n
integer
Optional
Defaults to 1

How many edits to generate for the input and instruction.

입력 및 명령어에 대해 생성할 편집 횟수입니다.

 

temperature
number
Optional
Defaults to 1

What sampling temperature to use. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 (argmax sampling) for ones with a well-defined answer.

사용할 샘플링 온도(temperature). 값이 높을수록 모델이 더 많은 위험을 감수하게 됩니다. 더 창의적인 응용 프로그램에는 0.9를, 잘 정의된 답이 있는 응용 프로그램에는 0(argmax 샘플링)을 사용해 보십시오.

 

We generally recommend altering this or top_p but not both.

 

일반적으로 temperature 또는 top_p를 변경하는 것이 좋지만 둘 다 변경하는 것은 권장하지 않습니다.

 

top_p
number
Optional
Defaults to 1

An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.

모델이 top_p 확률 질량으로 토큰의 결과를 고려하는 핵 샘플링이라고 하는 온도(temperature )를 사용한 샘플링의 대안입니다. 따라서 0.1은 상위 10% 확률 질량을 구성하는 토큰만 고려됨을 의미합니다.

 

We generally recommend altering this or temperature but not both.

 

일반적으로 top_p 또는 온도를 변경하는 것이 좋지만 둘 다 변경하는 것은 권장하지 않습니다.

 

 

반응형