GPT-5は強力ですが、そのプロンプト入力は他のモデルとは異なる場合があります。
ここでは、APIやコーディングツールでGPT-5を最大限に活用するためのヒントをご紹介します。
新しいGPT-5モデルは指示追従能力が大幅に向上していますが、その副作用として、特に .cursor/rules や AGENTS.md ファイル内で曖昧な指示や矛盾した指示を与えられると、うまく機能しないことがあります。
GPT-5は問題を解決する際に、常にある程度の思考を行います。
#!/bin/sh | |
# https://learn.microsoft.com/ja-jp/azure/ai-foundry/openai/reference | |
API_VERSION=2024-10-21 | |
curl -s "${AZURE_OPENAI_ENDPOINT}/openai/deployments/${AZURE_OPENAI_DEPLOYMENT_NAME}/chat/completions?api-version=${API_VERSION}" \ | |
-H "Content-Type: application/json" \ | |
-H "api-key: ${AZURE_OPENAI_API_KEY}" \ | |
-d "{ | |
\"messages\":[ |
#!/bin/sh | |
# install brew and tool | |
! type brew &>/dev/null && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
! type brew &>/dev/null && eval $(/opt/homebrew/bin/brew shellenv) | |
test -e ~/Brewfile && curl -LSs https://gist.github.com/mostlyfine/a4618789c380bb9aba7ce5dea3b6a78c/raw > ~/Brewfile | |
brew bundle --file ~/Brewfile | |
# setup cli | |
git clone -q https://github.com/mostlyfine/dotfiles.git ~/dotfiles |
cask_args appdir: "/Applications" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/core" | |
tap "homebrew/cask-fonts" | |
tap "universal-ctags/universal-ctags" | |
brew "mise" | |
brew "bitwarden-cli" |
@namespace url(http://www.w3.org/1999/xhtml); | |
* { | |
display: block; | |
-webkit-font-smoothing: subpixel-antialiased; | |
-moz-osx-font-smoothing: unset; | |
background-image:none !important; | |
background-color:#fff !important; | |
border-color:#666666 !important; | |
border: none !important; |
#/bin/sh | |
FILENAME=$1 | |
SPLITCMD=csplit | |
if [ "$(uname)" == 'Darwin' ]; then | |
SPLITCMD=gcsplit | |
fi | |
$SPLITCMD -f table. $1 /^--\ Table\ structure/ {*} | |
rm table.00 |
{ | |
"name": "es2015", | |
"version": "1.0.0", | |
"description": "", | |
"main": "bundle.js", | |
"scripts": { | |
"build": "watchify -t babelify -o bundle.js main.js -v", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", |
javascript:(function()%7Bvar%20l='';for(var%20i=0;i<document.links.length;i++){if(document.links[i].href.indexOf(document.domain)<0){l+=document.links[i].href+'\n';}}alert(l);%7D)(); |