KOMODO-SMALL
NLP(Natural Language Processing) κΈ°μ μ νμ©ν μ±ν μλΉμ€λ μ¬μ©μμ μ§λ¬Έμ΄λ μμ²μ μ€μκ°μΌλ‘ μ΄ν΄νκ³ λμνλ λνν μΈν°νμ΄μ€λ₯Ό μ 곡ν©λλ€. μ΄ μλΉμ€λ κ³ κ° μ§μ, κ΅μ‘, μν°ν μΈλ¨ΌνΈ λ± λ€μν λΆμΌμμ λ μ ννκ³ μ μ©ν λν κ²½νμ μ 곡ν©λλ€.
Available models
μ½λ© μ±λ₯μ΄ ν₯μλμ΄ λμ± λ³΅μ‘ν μ½λλ₯Ό μμ±ν μ μμ΅λλ€.
komodo-small-240723
κ²½λνλ λͺ¨λΈμμλ λΆκ΅¬νκ³ λμ μ±λ₯μ μλν©λλ€. λΉ λ₯Έ νμ΅κ³Ό μΆλ‘ μλλ₯Ό μ 곡νλ©°, μ μ 리μμ€λ‘λ ν¨μ¨μ μΈ μμ°μ΄ μ²λ¦¬ κΈ°λ₯μ μνν©λλ€. μ½λ© μ±λ₯μ΄ ν₯μλμ΄ λμ± λ³΅μ‘ν μ½λλ₯Ό μμ±ν μ μμ΅λλ€.
Request
POST
https://aiplatform-api.rest.univa.co.kr/rest/v1/text/komodo-small
Request Headers
Content-Type
application/json
x-api-key
UNIVA-API-KEY
curl -X POST 'https://aiplatform-api.rest.univa.co.kr/rest/v1/text/komodo-small' \
-H 'Content-Type: application/json' \
-H 'x-api-key: UNIVA-API-KEY' \ # API ν€λ₯Ό μ
λ ₯νμΈμ.
-d '{
"data": {
"model": "komodo-small",
# λ²μ μ€μ λ°©λ² : komodo-small-{version}
"stream": false,
"messages": [
{
"role": "system",
"content": "λΉμ μ AI μ±λ΄ Komodoμ
λλ€. μ¬μ©μμ μ§λ¬Έμ μμΈνκ³ μΉμ νκ² λ΅λ³νμΈμ."
},
{
"role": "user",
"content": "μ¬μ©μ μ
λ ₯ ν
μ€νΈ"
}
],
"max_tokens": 4096,
# max_tokens κΈΈμ΄ μ΅λκ° 4096
"temperature": 0.7,
"top_p": 1,
"top_k": -1,
"repetition_penalty": 1.15
}
}'
Request Body (* required)
model*
string
μ¬μ©ν modelμ id
messages*
messages[]["role"]
- role : system -> optional
- role : user -> required
array
μ¬μ©μκ° μ λ ₯νλ input text
stream
(Defaults to false)
boolean
λ©μμ§ μΆλ ₯ λ°©μμ κ²°μ νλ λ§€κ°λ³μ. Trueλ‘ μ€μ λλ©΄ μμ±λλ ν ν° λ¨μλ‘ λ©μμ§λ₯Ό μΆλ ₯νκ² λ©λλ€.
temperature
(Defaults to 0.7)
number
μλ΅μ λ€μμ±μ μ‘°μ νλ λ§€κ°λ³μ κ°μ΄ λμμλ‘ ν μ€νΈλ₯Ό μμ±ν λ κ°λ₯ν λ€μ λ¨μ΄μ μ ν λ²μκ° λμ΄μ Έ λ μ°½μμ μΈ μλ΅μ μμ±ν κ°λ₯μ±μ΄ λμμ§λλ€. 0~1 μ¬μ΄ κ°μΌλ‘ μ€μ ν©λλ€.
max_tokens
integer
μμ±ν μ μλ μ΅λ ν ν° μλ₯Ό μ§μ ν©λλ€. μ΅λ 4096κΉμ§ μ€μ κ°λ₯ν©λλ€.
top_p
(Defaults to 1)
number
κΈ°μ€ νλ₯ μ μ€μ νλ λ§€κ°λ³μ. μμΈ‘ νλ₯ μ μμλλ‘ μ€μ κ° p μ΄νμΈ ν ν°λ€ μ€ νλλ₯Ό μ νν©λλ€. 0~1 μ¬μ΄ κ°μΌλ‘ μ€μ ν©λλ€.
top_k
(Defaults to -1)
integer
λ€μ μμΈ‘ ν ν°μ ν보ꡰμ μλ₯Ό μ ννλ μ€μ νλ λ§€κ°λ³μ.
λ€μμ±μ μ‘°μ νκ³ ν μ€νΈ νμ§μ ν₯μμν¬ μ μμ΅λλ€. 1~200 μ¬μ΄ κ°μ μ¬μ©ν©λλ€.
Response
{
"success": true,
"result": {
"id": "cmpl-054c224e62cf49bea2a34fd2cd07a265",
"object": "chat.completion",
"created": 1720754064,
"model": "komodo-small",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "λͺ¨λΈ μλ΅ ν
μ€νΈ"
},
"logprobs": null,
"finish_reason": "stop",
"stop_reason": null
}
],
"usage": {
"prompt_tokens": 47,
"total_tokens": 225,
"completion_tokens": 178
}
}
}
API νΈμΆμμ λ°μνλ μ€λ₯λ API Error code νμ΄μ§λ₯Ό νμΈν΄μ£ΌμΈμ.
Deprecated Models
komodo-small-240630
ν΄λΉ λ²μ μ 2024-07-23μ μ¬μ© μ€μ§λμμ΅λλ€.
Last updated