눌러보지않고 미리보이는 글만 읽어도 됩니다. 가끔 프로그래밍을 하다보면, 기억이 안나서 찾게 되는 함수, 라이브러리, 기타 등등이 있습니다.그 때, 빠르게 검색해서 필요한 내용만 있기를 원할 때가 있었습니다.자주 사용하는 함수와 관련된 설명이나 부가설명들이 들어가 있지 않은 제목 그대로의 핵심만 정리해서 사용할 수 있도록 블로그를 활용하고자 합니다. p.s.저는 AI 및 데이터 관련한 일을 하기 때문에 해당 내용들이 주로 담겨 있습니다.위 목적과 다른 내용들의 게시글이 작성되어 있을 수 있습니다. (공유하고 싶은 정보들..)
최신글
-
(gemini) gemini API OpenAI SDK 호환 가능IT 지식 창고 2025.05.06 16:50
gemini API를 OpenAI SDK를 통해 활용 가능documentation : https://ai.google.dev/gemini-api/docs/openai?hl=ko from openai import OpenAIdef _request_google(messages, model: str): client = OpenAI( api_key=os.getenv("GOOGLE_API_KEY"), base_url="https://generativelanguage.googleapis.com/v1beta/openai/", ) return client.chat.completions.create(model=model, messages=messages)def request_g..
-
(메신저봇R) GPT(OpenAI), Gemini(Google) API 호출 코드IT 지식 창고 2025.05.04 12:37
메신저봇R을 통해서 개인적인 AI봇을 만들 때, 사용한 API 호출 코드입니다.공통const scriptName = "AI봇";/** * (string) room * (string) sender * (boolean) isGroupChat * (void) replier.reply(message) * (boolean) replier.reply(room, message, hideErrorToast = false) // 전송 성공시 true, 실패시 false 반환 * (string) imageDB.getProfileBase64() * (string) packageName */function response(room, msg, sender, isGroupChat, replier, imageDB, packageN..
-
(Hibernate) SQLite Dialect ErrorIT 지식 창고 2024.08.24 09:25
Hibernate 6.x 미만 버전에서는 공식적으로 SQLite dialect를 지원하지 않습니다.단, github에서 미만 버전에서 사용할 수 있도록 오픈소스형태로 공개한 repository가 있습니다. Hibernate 3:https://github.com/kemitix/sqlite-dialect net.kemitix sqlite-dialect 0.1.0Hibernate configuration:hibernate.dialect = org.hibernate.dialect.SQLiteDialectHibernate 4:https://github.com/EnigmaBridge/hibernate4-sqlite-dialect com.enigmabridge hibernate4-sqlit..
-
(torchio) 3D Data Augmentation 중 주로 사용하는 기법IT 지식 창고 2024.05.14 19:18
import torchio as tio# img_size (D, H, W)def augmentation(split_set, img_size=None): aug_img_shape = [img_size[2], img_size[1], img_size[0]] if split_set == "train": aug = tio.Compose( [ #### Preprocessing # tio.CropOrPad((64,64,48)), # tio.Resample(4), # 반올림문제로 img와 mask를 subject로 resize 차이가 생길 수 있음. ..