openai api

    

퀵스타트

플레이그라운드에 생성되는 코드 바로 적용 안됨 키 넣어줘야함.

env로 넣어도 되고 그냥 바로 넣어도 되고

https://platform.openai.com/docs/quickstart


토큰 수 계산


https://platform.openai.com/tokenizer


토큰 콜수 비용계산 사이트 여러 llm 가격비교

얼추 내가 손으로 계산한거랑 비슷하게 나오는거 보니 계산은 맞게 했는데 실제로는 더 비싸게 나옴

https://www.launchnow.pro/openai-chatgpt-api-pricing-calculator



내 티어 확인(rpm 제한 다름)

https://platform.openai.com/settings/organization/limits


티어별 rpm 문서

https://platform.openai.com/docs/guides/rate-limits/rate-limits



Azure OpenAI 라는 것도 있네

https://learn.microsoft.com/en-us/azure/ai-services/openai/overview#comparing-azure-openai-and-openai

OpenAI와 동일한 모델을 실행하면서 Microsoft Azure의 보안 기능을 얻을 수 있습니다. Azure OpenAI는 프라이빗 네트워킹, 지역별 가용성 및 책임 있는 AI 콘텐츠 필터링을 제공합니다.




이거 댓글 읽어볼만함 

... In fact, “real” parallelism is not natively possible at all because of what’s called the Global Interpreter Lock 2 (the GIL) in python... -> GIL 때문에 스레드가 동시에 작동은 안되지만 스레드를 번갈아서 사용하게되어서 어쨌든 되기는 하는 듯?

https://community.openai.com/t/can-one-assistant-run-concurrently-on-multiple-different-threads-at-the-same-time/678250/2


token 수 세기  tiktoken세기 가이드라인

https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken


gpt-3.5-turbo Finetuning

https://cookbook.openai.com/examples/chat_finetuning_data_prep


finetuning jsonl 포맷 예시 

https://github.com/openai/openai-cookbook/blob/main/examples/data/toy_chat_fine_tuning.jsonl









댓글

이 블로그의 인기 게시물

js 스트링에서 요소 갯수 세기

STUDY

javascript cheatsheet