Skip to content

Commit e7b1387

Browse files
author
y-yamasaki
committed
Merge branch 'develop'
2 parents 81bff7b + 1b8e4af commit e7b1387

15 files changed

Lines changed: 1404 additions & 291 deletions

WebSite/assets/css/blog.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949

5050
/* Thumbnail (Left side of CARD) */
5151
.og-thumbnail {
52-
display: block;
52+
display: flex;
53+
align-items: center;
54+
justify-content: center;
5355
flex: 0 0 130px;
5456
width: 130px;
5557
height: 130px;
@@ -62,7 +64,8 @@
6264
.og-thumbnail img {
6365
width: 100%;
6466
height: 100%;
65-
object-fit: cover;
67+
object-fit: contain;
68+
object-position: center;
6669
display: block;
6770
/* Reset markdown styles */
6871
max-width: none !important;

WebSite/assets/data/blogList.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
[
2+
{
3+
"id": "blog_00020",
4+
"title": "試行錯誤のGemini 3 Pro体験記",
5+
"date": "2025-12-12T00:00:00.000Z",
6+
"category": "AI",
7+
"description": "Google AI Studio APIでの高額課金、Copilotプレビューでの格闘、そして料金体系の変更。AI時代の従課金モデルとの付き合い方を考える。",
8+
"tags": [
9+
"Gemini",
10+
"Copilot",
11+
"API"
12+
],
13+
"thumbnail": "assets/img/gemini_icon.png",
14+
"contentPath": "blog/blog_00020.html",
15+
"recommended": true
16+
},
217
{
318
"id": "blog_00018",
419
"title": "DiscordoでDiscordをターミナルから触ってみた",

WebSite/assets/data/blogList_en.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
[
2+
{
3+
"id": "blog_00020",
4+
"title": "Trial and Error:My Experience with Gemini 3 Pro",
5+
"date": "2025-12-12T00:00:00.000Z",
6+
"category": "AI",
7+
"description": "High charges with Google AI Studio API, struggles with Copilot Preview, and changes in pricing models. Thinking about how to deal with pay-as-you-go models in the AI era.",
8+
"tags": [
9+
"Gemini",
10+
"Copilot",
11+
"API"
12+
],
13+
"thumbnail": "assets/img/gemini_icon.png",
14+
"contentPath": "blog/en/blog_00020.html",
15+
"recommended": true
16+
},
217
{
318
"id": "blog_00018",
419
"title": "Trying Out Discordo:Using Discord from the Terminal",

WebSite/assets/img/gemini_icon.png

16.7 KB
Loading

WebSite/blog/blog_00018.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ <h3 id="まとめ">まとめ</h3><p>DiscordoはターミナルからDiscordを
287287
</div>
288288
</div>
289289

290-
<div class="post-detail__nav post-detail__nav--bottom"><a href="blog_00017.html" class="btn btn--prev">← ZedのAI機能活用術:T…</a><a href="../blog.html" class="btn btn--back">← ブログ一覧へ戻る</a></div>
290+
<div class="post-detail__nav post-detail__nav--bottom"><a href="blog_00017.html" class="btn btn--prev">← ZedのAI機能活用術:T…</a><a href="../blog.html" class="btn btn--back">← ブログ一覧へ戻る</a><a href="blog_00020.html" class="btn btn--next">試行錯誤のGemini 3… →</a></div>
291291
</article>
292292
</div>
293293
<aside class="post-sidebar">

WebSite/blog/blog_00020.html

Lines changed: 364 additions & 0 deletions
Large diffs are not rendered by default.

WebSite/blog/en/blog_00018.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ <h3 id="summary">Summary</h3><p>Discordo is a convenient tool that allows you to
297297
</div>
298298
</div>
299299

300-
<div class="post-detail__nav post-detail__nav--bottom"><a href="blog_00017.html" class="btn btn--prev">← Harnessing Ze…</a><a href="../blog.html" class="btn btn--back">← Back to Blog</a></div>
300+
<div class="post-detail__nav post-detail__nav--bottom"><a href="blog_00017.html" class="btn btn--prev">← Harnessing Ze…</a><a href="../blog.html" class="btn btn--back">← Back to Blog</a><a href="blog_00020.html" class="btn btn--next">Trial and Err… →</a></div>
301301
</article>
302302
</div>
303303
<aside class="post-sidebar">

WebSite/blog/en/blog_00020.html

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
title: Trial and Error:My Experience with Gemini 3 Pro
3+
date: 2025-12-12
4+
category: AI
5+
description: High charges with Google AI Studio API, struggles with Copilot Preview, and changes in pricing models. Thinking about how to deal with pay-as-you-go models in the AI era.
6+
tags: [Gemini, Copilot, API]
7+
recommended: true
8+
thumbnail: assets/img/gemini_icon.png
9+
---
10+
11+
Hello! I'm Pan-kun.
12+
13+
This time, I've summarized my experience using Gemini 3 Pro via Copilot in the Zed IDE.
14+
15+
16+
## How I Burned Through 5,000 Yen in 2 Days
17+
18+
A few days after Gemini 3 was released, information was flying everywhere about benchmarks and "I made this with this prompt," etc.
19+
I thought, "I have to try this," so without hesitation, I registered a project and API on GCP via Google AI Studio and registered the API Key in Zed...
20+
21+
I used it relentlessly.
22+
By throwing a large amount of accurate information in the prompts, I was able to achieve my goals in seconds.
23+
24+
About two days later, when I thought I'd take a break, I checked GCP and saw a charge of just under 5,000 yen...
25+
I was so terrified that I deleted the GCP API in seconds.
26+
27+
Thinking calmly, it's obvious since it's a pay-as-you-go API system, but
28+
my understanding of my usage pace and the billing rate at that time was too naive.
29+
30+
Monthly flat rates are the only way to go, after all.
31+
I can't deal with this.
32+
33+
## Gemini 3 Pro Preview Suddenly Appears in Copilot
34+
35+
A few days after giving up on using the API, something changed in the Copilot I usually use.
36+
37+
> "Gemini 3 Pro Preview is available for Copilot Pro plan users and above."
38+
39+
Yes, naturally, I jumped on it in seconds...
40+
By the way, since Zed can link with a GitHub account, there was no need for API issuance or registration procedures,
41+
and since I didn't need to acquire or manage a Google AI Studio API Key, it was even more convenient.
42+
43+
# Mysterious Behavior: Works Sometimes, Sometimes Not
44+
45+
However, the joy was short-lived.
46+
While working, Copilot frequently started throwing errors and stopped responding. It became impossible to work, so I investigated.
47+
48+
## Solution
49+
50+
Scouring the internet, I found a large number of people suffering from the same phenomenon,
51+
and among them, I found a person who was being thanked as if they were being worshipped.
52+
53+
To state the method simply:
54+
> Send a request with a prompt that just **reads an arbitrary file** at the very beginning of the chat.
55+
That's it.
56+
It seriously worked.
57+
58+
The source is below, and reading this in conjunction with the official documentation made a lot of sense, but
59+
the wording in the official documentation was a bit vague.
60+
61+
Even so, the person who analyzed this is too amazing...
62+
63+
[CARD](https://github.com/aadishv/vscre)
64+
[CARD](https://ai.google.dev/gemini-api/docs/thought-signatures?hl=ja)
65+
66+
# Summary?
67+
68+
So, currently, I am able to use it thoroughly without issues.
69+
Eventually, I'd like to introduce an LLM on a home server and use a dedicated AI if possible.
70+
I hate being told I can't use things at work due to security concerns, so it's important to increase my options in advance.
71+
72+
We can prepare for a time years from now when we can no longer say "it's faster to build it yourself," and
73+
while a future where "engineers are not needed" might not come, the possibility of "we don't need ~ engineers" arising exists, so I want to avoid resting on my laurels and getting tripped up by AI.
74+
Especially since there is a promising future ahead.

WebSite/content/blog/blog_00020.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
title: 試行錯誤のGemini 3 Pro体験記
3+
date: 2025-12-12
4+
category: AI
5+
description: Google AI Studio APIでの高額課金、Copilotプレビューでの格闘、そして料金体系の変更。AI時代の従課金モデルとの付き合い方を考える。
6+
tags: [Gemini, Copilot, API]
7+
recommended: true
8+
thumbnail: assets/img/gemini_icon.png
9+
---
10+
11+
こんにちは!パン君です。
12+
13+
今回は私が体験したZed IDEで Copilot経由で Gemini 3 Proを利用した件についてまとめてみました。
14+
15+
16+
## 2日で5,000円が溶けた話
17+
18+
Gemini 3が出て数日、ベンチマークやらこのプロンプトでこれが作れた、などなど
19+
色んな情報が一気に飛び交って「これはやって体験するしかねぇ」となり、躊躇なく Google AI Studio 経由で GCP にプロジェクトと API 登録を済ませて Zed に API Key を登録....
20+
21+
使いに使い倒しました。
22+
プロンプトで正確な情報をポンポン大量に投げとけば、秒で目標が達成できてしまいました。
23+
24+
少し休憩と思った2日後頃に GCP を確認すると $5000$ 円弱の請求が発生していました...
25+
怖すぎて秒で GCP の API を削除しましたね
26+
27+
冷静に考えればAPIの従課金制度なので当たり前なのですが、
28+
そのときの自分の利用ペースと課金レートの認識が甘すぎました。
29+
30+
やっぱり月定額しか勝たんですね
31+
やってられんです
32+
33+
## Copilotに突如現れた Gemini 3 Pro のプレビュー
34+
35+
API利用を諦めて数日後、普段利用している Copilot に異変が
36+
37+
> 「Gemini 3 Pro プレビュー は Copilot Pro プラン以上の方はご利用できます」
38+
39+
はい、当然秒で....
40+
因みに Zed はGitHubアカウントと連携できるので、API発行、登録の手順はいらずでして、
41+
なんなら Google AI Studio の API Key取得とか管理とかいらないから、なおさら便利でした。
42+
43+
# 使えたり使えなかったりの謎挙動
44+
45+
しかし、喜びもつかの間。
46+
作業中にCopilotが エラーを吐いて応答しなくなる 事態が頻繁に発生し始め、仕事にならないので調べました。
47+
48+
## 解決
49+
50+
ネットの情報を漁っていると同じ現象に悩まされている人が大量におりまして
51+
その中で崇め奉られるかのように感謝されている人を発見しました。
52+
53+
簡潔なやり方を述べておくと
54+
> チャットの初手に適当なファイルを **読み込ませるだけ** のプロンプトでリクエストを送る
55+
以上です。
56+
マジで動作しました。
57+
58+
ソースは下記だが、これと公式ドキュメントを合わせて読んだらかなり納得しましたが、
59+
公式ドキュメントの言葉が少し曖昧でしたね。
60+
61+
にしても解析したこの人が凄すぎる...
62+
63+
[!CARD](https://github.com/aadishv/vscre)
64+
65+
[!CARD](https://ai.google.dev/gemini-api/docs/thought-signatures?hl=ja)
66+
67+
# まとめ?
68+
69+
というかんじで現状は無事使い倒せています。
70+
自宅常駐サーバーで LLM 導入して専用AIを利用する方向とかもいずれできたらやりたいですね。
71+
会社とかにセキュリティ面でぐちぐち言われて使えない~みたいなのが嫌なので先に手段を増やしておくのは大事です。
72+
73+
何年後に「自分で組んだ方が早い」なんていえなくなる時代がくるかも と備えること自体はできるし、
74+
「エンジニアがいらなくなる」将来はないかもですが、「~エンジニアはいらないなぁ」は発生する可能性があるので、胡坐書いてAIに足元すくわれるのだけは避けたいですね。
75+
せっかく有望な未来があるのですから

0 commit comments

Comments
 (0)