# AI編程平台 胖虎

<figure><img src="/files/pGIiTswsZ7lmtpMO1axL" alt=""><figcaption></figcaption></figure>

胖虎Agent是Kittenbot開發的編程平台，除了傳統的純文字編程外，胖虎平台更有AI編程的功能，支援從自然語言生成出完整編程代碼。

### 胖虎編程平台預覽

{% embed url="<https://youtu.be/5gTTaL2S0LM>" %}

### 啟動胖虎編程平台

首先按照教學將未來板Lite AI連接到Wifi網絡

{% content-ref url="/pages/s6ENMvqqToSACj6KFnnP" %}
[未來板Lite AI 操作教學](/mcu/liteai/lite_operation_guide.md)
{% endcontent-ref %}

在未來板Lite AI的編程連接裡面選擇AI編程，然後再瀏覽器輸入未來板的IP地址

<div><figure><img src="/files/4KhPZNSe7f8xzMCukmY2" alt=""><figcaption></figcaption></figure> <figure><img src="/files/Ft7VrNHAJDBG612BeA2v" alt=""><figcaption></figcaption></figure></div>

選擇集成開發環境

<figure><img src="/files/ig0b86ajDyNjAqmkL0Gq" alt=""><figcaption></figcaption></figure>

在初次使用時，需要設定專屬的存取令牌(API Key)。

有關開啟帳號及Token增值的事宜請向我們聯絡

<div><figure><img src="/files/uuZdALkhJDML0W0ZYarM" alt=""><figcaption></figcaption></figure> <figure><img src="/files/0yCB9Auqd84kgw6DEXmh" alt=""><figcaption></figcaption></figure></div>

在Kzone帳號平台上選擇API訪問令牌，然後點擊創建Key

<figure><img src="/files/8dRNhy70JPkf9mSUCQ1H" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KLNTCTy3oRNNLnY6TxPP" alt=""><figcaption></figcaption></figure>

將API Key複製到胖虎平台

<figure><img src="/files/2kNIGhltd0OhKXmrDQar" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/AWGF3sbrqwl3fG1StSc3" alt=""><figcaption></figcaption></figure>

### 使用胖虎編程平台

### AI編程

設置好API key之後就可以點擊開始創作，然後就可以在聊天室與機械人對話，創作不同的程式

{% hint style="info" %}
每次對話後，機械人都會告訴你這次對話消耗多少積分。
{% endhint %}

<figure><img src="/files/OTWpKsYWTVI4zIafZmhR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/a9ooGsPH8TifrJNaIA2K" alt=""><figcaption></figcaption></figure>

完成後就可以試試打開剛生成的程式運行一下

<figure><img src="/files/64OVpRFeIhBBlTISUwFX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/241rjSr6eOvE11z2rafw" alt=""><figcaption></figcaption></figure>

除了生成程式之外，AI Agent亦可以幫忙修改程式及debug等

<figure><img src="/files/ERFvfwUdOT0QpZvTBbt0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GFstZR8JsEj5wrdvxolD" alt=""><figcaption></figcaption></figure>

### 聊天Agent設定

在胖虎平台上也可以設置聊天Agent的設定，例如文字轉語音的模型等

打開想設定的Agent檔(xxxx.agt)

<figure><img src="/files/hWvghfhyysxprwqSrWDA" alt=""><figcaption></figcaption></figure>

打開詳細配置，點擊添加配置

TTS的語音模型可以在TTS語音配置裏設定，粵語提供了3個模型可供選擇

<div><figure><img src="/files/IKj7Z8yLJotkXrYmeC9W" alt=""><figcaption></figcaption></figure> <figure><img src="/files/OnmJYQcarmv35QBAVnku" alt=""><figcaption></figcaption></figure></div>

<figure><img src="/files/z8m15m6SEncZBHknGM28" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub.kittenbot.hk/mcu/liteai/bunfu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
