Files
mimo-studio-android/app/src/main/res/layout/dialog_settings.xml
T
shuiyu1123 e1861a2967 feat: MiMo Studio Android v1.0.0
- OpenAI-compatible API client for Xiaomi MiMo platform
- Chat completions with streaming support
- Model list browser
- Multi-conversation management
- Settings: API key, base URL, temperature, max tokens
- Material Design 3 UI

API Endpoints:
- GET  /v1/models          - List available models
- GET  /v1/models/{id}     - Get model details
- POST /v1/chat/completions - Chat (stream & non-stream)
- POST /v1/completions     - Text completions (stream & non-stream)
2026-05-02 12:30:49 +08:00

123 lines
3.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="24dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="API Key"
android:textSize="14sp"
android:textStyle="bold"
android:layout_marginBottom="4dp" />
<EditText
android:id="@+id/etApiKey"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="输入你的 API Key"
android:inputType="textPassword"
android:background="@drawable/bg_card"
android:padding="12dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Base URL"
android:textSize="14sp"
android:textStyle="bold"
android:layout_marginTop="16dp"
android:layout_marginBottom="4dp" />
<EditText
android:id="@+id/etBaseUrl"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="https://api.xiaomimimo.com/"
android:inputType="textUri"
android:background="@drawable/bg_card"
android:padding="12dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="系统提示词"
android:textSize="14sp"
android:textStyle="bold"
android:layout_marginTop="16dp"
android:layout_marginBottom="4dp" />
<EditText
android:id="@+id/etSystemPrompt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="可选:设置助手的行为..."
android:inputType="textMultiLine"
android:minLines="2"
android:maxLines="4"
android:background="@drawable/bg_card"
android:padding="12dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="温度 (Temperature)"
android:textSize="14sp"
android:textStyle="bold"
android:layout_marginTop="16dp"
android:layout_marginBottom="4dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<SeekBar
android:id="@+id/seekTemperature"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:max="200"
android:progress="100" />
<TextView
android:id="@+id/tvTemperature"
android:layout_width="50dp"
android:layout_height="wrap_content"
android:text="1.0"
android:textAlignment="center"
android:layout_marginStart="8dp" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="最大输出 Token"
android:textSize="14sp"
android:textStyle="bold"
android:layout_marginTop="16dp"
android:layout_marginBottom="4dp" />
<EditText
android:id="@+id/etMaxTokens"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="4096"
android:inputType="number"
android:background="@drawable/bg_card"
android:padding="12dp" />
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/switchStreaming"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="流式输出 (Streaming)"
android:checked="true"
android:layout_marginTop="16dp" />
</LinearLayout>