728x90

https://github.com/seohyunjun/paper-translator 

 

GitHub - seohyunjun/paper-translator: pdf paper translator

pdf paper translator. Contribute to seohyunjun/paper-translator development by creating an account on GitHub.

github.com

 

Version History

v0.1.2 2023/6/15

ChatGPT API Update : gpt-3.5-turbo-16k
token 4k -> 16k (about 3 pages cover per 1 request)

 

https://openai.com/blog/function-calling-and-other-api-updates 

 

Function calling and other API updates

Weโ€™re announcing updates including more steerable API models, function calling capabilities, longer context, and lower prices.

openai.com

 

์˜ฌํ•ด ์ดˆ์— gpt-3.5 ํ„ฐ๋ณด์™€ gpt-4๋ฅผ ์ถœ์‹œํ•œ ํ›„ ๋ถˆ๊ณผ ๋ช‡ ๋‹ฌ ๋งŒ์— ๊ฐœ๋ฐœ์ž๋“ค์ด ์ด ๋ชจ๋ธ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๋†€๋ผ์šด ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๊ฐœ๋ฐœํ•˜๋Š” ๊ฒƒ์„ ๋ณด์•˜์Šต๋‹ˆ๋‹ค. (ex, Langchain)

 

Update


1) ์ฑ„ํŒ… ์™„์„ฑ API์— ์ƒˆ๋กœ์šด ํ•จ์ˆ˜ ํ˜ธ์ถœ ๊ธฐ๋Šฅ ์ถ”๊ฐ€
2) ์—…๋ฐ์ดํŠธ๋˜๊ณ  ๋”์šฑ ์กฐ์ • ๊ฐ€๋Šฅํ•œ gpt-4 ๋ฐ gpt-3.5-turbo ๋ฒ„์ „
3) gpt-3.5-turbo์˜ ์ƒˆ๋กœ์šด 16k ์ปจํ…์ŠคํŠธ ๋ฒ„์ „(ํ‘œ์ค€ 4K ๋ฒ„์ „ ๋Œ€๋น„)
4) ์ตœ์‹  ์ž„๋ฒ ๋”ฉ ๋ชจ๋ธ์—์„œ 75% ๋น„์šฉ ์ ˆ๊ฐ
5) gpt-3.5 ํ„ฐ๋ณด์˜ ์ž…๋ ฅ ํ† ํฐ์— ๋Œ€ํ•œ 25% ๋น„์šฉ ์ ˆ๊ฐ
6) GPT-3.5-TURBO-0301 ๋ฐ GPT-4-0314 ๋ชจ๋ธ์— ๋Œ€ํ•œ ์ง€์› ์ค‘๋‹จ ์ผ์ • ๋ฐœํ‘œ

 

 ์ด ๋ชจ๋“  ๋ชจ๋ธ์—๋Š” 3์›” 1์ผ์— ๋„์ž…ํ•œ ๊ฒƒ๊ณผ ๋™์ผํ•œ ๋ฐ์ดํ„ฐ ํ”„๋ผ์ด๋ฒ„์‹œ ๋ฐ ๋ณด์•ˆ ๋ณด์žฅ์ด ์ ์šฉ๋˜๋ฉฐ, ๊ณ ๊ฐ์€ ์ž์‹ ์˜ ์š”์ฒญ์—์„œ ์ƒ์„ฑ๋œ ๋ชจ๋“  ์ถœ๋ ฅ์„ ์†Œ์œ ํ•˜๊ณ  API ๋ฐ์ดํ„ฐ๋Š” ํŠธ๋ ˆ์ด๋‹์— ์‚ฌ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

 

์ƒˆ๋กœ์šด 3.5 turbo ChatGPT๋Š” 4K token์—์„œ 16k๋กœ ๋…ผ๋ฌธ ์„ธ ์žฅ์˜ ๋ถ„๋Ÿ‰์„ ์š”์•ฝ์—†์ด ๋ฒˆ์—ญ ๊ฐ€๋Šฅํ•ด์กŒ๋‹ค. ๋˜ํ•œ ๊ฐ€๊ฒฉ๋„ 25% ๋‚ฎ์•„์ง€๊ณ  ์ตœ๊ทผ Langchain์—์„œ ๊ฐ€์žฅ ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š” embedding ๋น„์šฉ์€ ๋ฌด๋ ค 75% ๋‚ฎ์•„์กŒ๋‹ค. 

 

Function calling

 gpt-3.5-turbo-0613์— ํ•จ์ˆ˜๋ฅผ ์„ค๋ช…ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ชจ๋ธ์ด ํ•ด๋‹น ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•˜๊ธฐ ์œ„ํ•œ ์ธ์ˆ˜๊ฐ€ ํฌํ•จ๋œ JSON ๊ฐ์ฒด๋ฅผ ์ถœ๋ ฅํ•˜๋„๋ก ์ง€๋Šฅ์ ์œผ๋กœ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” GPT์˜ ๊ธฐ๋Šฅ์„ ์™ธ๋ถ€ ๋„๊ตฌ ๋ฐ API์™€ ๋ณด๋‹ค ์•ˆ์ •์ ์œผ๋กœ ์—ฐ๊ฒฐํ•  ์ˆ˜ ์žˆ๋Š” ์ƒˆ๋กœ์šด ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. 

 Output์„ Json์œผ๋กœ ๋ฐ›๊ฒŒ๋” ํ•ด ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ˜ธ์ถœ

 

ex)

  • Create chatbots that answer questions by calling external tools (e.g., like ChatGPT Plugins)

Convert queries such as โ€œEmail Anya to see if she wants to get coffee next Fridayโ€ to a function call like send_email(to: string, body: string), or โ€œWhatโ€™s the weather like in Boston?โ€ to get_current_weather(location: string, unit: 'celsius' | 'fahrenheit').

  • Convert natural language into API calls or database queries

Convert โ€œWho are my top ten customers this month?โ€ to an internal API call such as get_customers_by_revenue(start_date: string, end_date: string, limit: int), or โ€œHow many orders did Acme, Inc. place last month?โ€ to a SQL query using sql_query(query: string).

  • Extract structured data from text

Define a function called extract_people_data(people: [{name: string, birthday: string, location: string}]), to extract all people mentioned in a Wikipedia article.

/v1/chat/complications ์—”๋“œํฌ์ธํŠธ์˜ ์ƒˆ๋กœ์šด API ๋งค๊ฐœ๋ณ€์ˆ˜์ธ functions ๋ฐ function_call์„ ํ†ตํ•ด ํ™œ์„ฑํ™”. 

 

 

 

๋ฐ˜์‘ํ˜•
๋‹คํ–ˆ๋‹ค