メインコンテンツへスキップ
FIM One は、LLM プロバイダーとモデルを管理するための機能豊富な管理 UI を提供します。このガイドでは、プロバイダーの追加、個別モデルの設定、高度な構造化出力設定の調整、およびワンクリック切り替え用のモデルグループへの整理方法について説明します。 ENV ベースの設定(管理 UI なし)については、環境変数を参照してください。モデル選択の推奨事項については、推奨モデルを参照してください。

アーキテクチャ: プロバイダー、モデル、グループ

FIM One は LLM 設定を 3 つのレベルで整理します:

Adding a Provider

1

Open the Models page

Open Admin Panel from the user menu and select the Models tab.
2

Click Add Provider

Click the Add Provider button in the top-right area of the Providers section.
3

Select a preset or use a custom endpoint

The dialog offers presets for 16 providers — OpenAI, Anthropic (Claude), Google Gemini, DeepSeek, Mistral AI, xAI (Grok), OpenRouter, Ollama, and the China and Global endpoints of Qwen, GLM, Moonshot and MiniMax — plus OpenAI Compatible (custom endpoint). Clicking a preset auto-fills the provider name and base URL.Choose OpenAI Compatible if your provider is not listed (e.g., a third-party relay or any other OpenAI-compatible endpoint).
4

Enter credentials

Fill in the required fields:
  • Provider Name — A friendly label (e.g., “My OpenAI Account”). This is for your reference only.
  • Base URL — The API endpoint. Presets fill this automatically. For custom endpoints, enter the full URL (e.g., http://localhost:11434/v1 for Ollama).
  • API Key — Your provider’s API key. With the Ollama preset the API key can be left empty.
5

Save

Click Create. The provider appears in the list, ready for you to add models under it.
You can create multiple providers for the same service. For example, two “OpenAI” providers with different API keys for separate billing accounts, or an “Anthropic (Direct)” and “Anthropic (via Bedrock)” with different base URLs.

Adding a Model

1

Expand a provider

On the Models page, click the chevron next to an existing provider to expand it and see its models.
2

Click Add Model

Click the Add Model button that appears under the expanded provider.
3

Enter model details

Fill in the two required fields:
  • Display Name — A human-readable name shown in the UI (e.g., “GPT-4o”, “Claude Sonnet”). Can be anything you like.
  • Model ID — The exact model identifier sent to the API (e.g., gpt-4o, claude-sonnet-4-6, deepseek-chat). This must match what your provider expects.
4

Configure advanced settings (optional)

Click the Advanced toggle to reveal additional settings: Max Output Tokens, Context Size, Temperature, Native Function Calling, JSON Mode, and Vision Support (whether the model accepts images; see Document Processing). See the Advanced Settings section below for details on each.
5

Save

Click Create. The model appears under its provider and is now available for assignment to model groups.

高度な設定

各モデルには、FIM One が構造化出力抽出のためにプロバイダーの API とどのようにやり取りするかを制御する高度な設定があります。これらの設定は、モデル作成/編集ダイアログの Advanced トグルの下にあります。

ネイティブ関数呼び出し

設定名: ネイティブ関数呼び出し(tool_choice_enabled として保存) デフォルト: ON FIM One が構造化出力抽出のために強制的な tool_choice を使用するかどうかを制御します。これは構造化出力の劣化チェーンのレベル 1 です——モデルがサポートしている場合の最も信頼性の高い方法です。 無効にする場合:
  • モデルが "tool_choice 'specified' is incompatible with thinking enabled" のようなエラーを返す場合。これはモデルの思考能力の特性ではなく、プロバイダーごとのルールです:deepseek-reasoner と思考機能付き Kimi モデルは強制的なツール選択を拒否しますが、MiniMax はすべての呼び出しで思考を行い、これを受け入れます。プロバイダー機能マトリックスの表 B に各プロバイダーの判定があります
  • 構造化出力リクエストが呼び出しごとに約 10 秒のペナルティで一貫して遅く、その後 JSON Mode へのフォールバックが続く場合
無効にした場合の効果: FIM One はレベル 1(ネイティブ関数呼び出し)をスキップし、構造化出力のためにレベル 2(JSON Mode)から開始します。ReAct エージェントのツール呼び出しは完全に影響を受けません——この設定に関わらずすべてのモデルで機能する tool_choice="auto" を使用します。
この設定は、構造化出力抽出に使用される強制的なツール選択(DAG プランニング、スキーマアノテーション)にのみ影響します。ReAct エージェントには影響しません。ReAct エージェントは tool_choice="auto" を使用して自由にツール呼び出しのタイミングを決定します。
技術的な詳細については、LLM プロバイダー互換性 — tool_choice_enabled を参照してください。

JSON Mode

Setting name: JSON Mode (stored as json_mode_enabled) Default: ON Controls whether FIM One uses response_format=json_object for structured output. This is Level 2 in the degradation chain. When to disable:
  • Your provider rejects assistant message prefill — primarily AWS Bedrock relays, which throw "This model does not support assistant message prefill"
Effect when disabled: FIM One skips Level 2 (JSON Mode) and falls to Level 3 (plain text extraction). Modern models produce valid JSON from prompt instructions alone, so there is typically no quality loss. For technical details, see LLM Provider Compatibility — json_mode_enabled.

Temperature

Default: 0.7 (inherited from the global setting if left unset) Controls the randomness of model output. Range: 0 (deterministic) to 2 (highly creative).
When reasoning/extended thinking is enabled for Anthropic models, the system handles temperature: Claude 4.5 and older are sent 1.0, and Claude 4.6 and newer have the parameter removed. You do not need to set this manually.

最大出力トークン

モデルが単一の応答で生成できるトークンの最大数。システムデフォルト(64,000)を使用する場合は空白のままにします。VRAM が限定されたローカルモデルの場合は、これを明示的に低い値(例:8192)に設定します。

コンテキストサイズ

モデルのコンテキストウィンドウサイズ(トークン単位)。システムデフォルト(128,000)を使用する場合は空白のままにしてください。ローカルモデルの場合、モデルと利用可能なメモリに応じて、通常4K~32Kの範囲でモデルの実際の機能に合わせて設定してください。

推奨設定

ほとんどのモデルはデフォルト設定(両方のトグルがON)で正しく動作します。エラーが発生した場合や不要なレイテンシーが生じた場合のみ調整してください。 以下の表は一般的なプロバイダーとモデルをカバーしています。データはUniAPI機能タグから取得し、2026-03-22時点のランタイム動作に対して検証されています。モデルの機能は頻繁に変わるため、エラーが発生した場合はプロバイダーの最新ドキュメントを確認してください。 これはモデルごとのオペレータビューです。モデルを追加する際にどのトグルを設定するかを示しています。これが従うプロバイダーレベルのルールと、それを実装するコードアンカーはプロバイダー機能マトリックスにあります。この2つが矛盾する場合、マトリックスが正式なものであり、この表は更新が必要です。

クイックルール

  • Native FC ON 関数呼び出しをサポートするモデル向け(ほとんどの最新モデル)
  • Native FC OFF 強制的な tool_choice を拒否する思考常時オンモデル向け
  • JSON Mode ON ほとんどのモデル向け(安全なデフォルト)
  • JSON Mode OFF AWS Bedrockリレー向けのみ(プリフィル拒否)

プロバイダー別設定マトリックス

OpenAI Anthropic (Claude) Google Gemini DeepSeek xAI (Grok) Qwen (Alibaba Cloud) Zhipu (GLM) Moonshot (Kimi) MiniMax ByteDance (Doubao) Meta (Llama)
Max Outputの「—」について は、プロバイダーが制限を報告しなかったことを意味します。実際には、これらのモデルは通常4K~16Kの出力トークンをサポートしています。特定の値が必要な場合は、モデルの詳細設定で Max Output Tokens を明示的に設定してください。
診断方法: アプリケーションログで structured_llm_call: native_fc call raised 警告を確認してください。これらの警告の後に JSON Mode 抽出が成功している場合、そのモデルはネイティブ関数呼び出しの恩恵を受けていません。その場合、そのモデルの Native Function Calling を無効にして、無駄な API 呼び出しと構造化出力リクエストごとの約10秒のレイテンシペナルティを排除してください。
モデルの機能はプロバイダーが API を更新するにつれて頻繁に変わります。上記の推奨事項は 2026-03-26 のデータ(UniAPI 機能タグ + 本番環境ランタイム検証)に基づいています。以前に機能していたモデルがエラーを返し始めた場合は、プロバイダーの変更ログで破壊的な変更を確認してください。

モデルグループ

モデルグループを使用すると、モデルを特定のロールに割り当て、1回のクリックで設定を切り替えることができます。

Roles

FIM One uses three model roles. Each role serves a different purpose in the execution pipeline:

モデルグループの作成

1

グループセクションを開く

Admin > Models ページで、Model Groups セクションまでスクロールします。
2

グループを追加をクリック

Add Group ボタンをクリックします。
3

グループに名前を付ける

わかりやすい名前を入力します(例:「Production (OpenAI)」、「Budget (DeepSeek)」、「Local Dev」)。
4

ロールにモデルを割り当てる

各ロール(General、Fast、Reasoning)について、ドロップダウンからモデルを選択します。ドロップダウンには、アクティブなプロバイダーからのすべてのアクティブなモデルが表示され、プロバイダー名でグループ化されています。ロールを未割り当てのままにすることができます。その場合、General モデルにフォールバックします(General も未割り当ての場合は、ENV で設定されたモデルにフォールバックします)。
5

保存

Create をクリックします。グループがアクティベーション可能な状態になります。

Activating a Group

To activate a model group, use the dropdown or activation control on the Models page. Only one group can be active at a time. Activating a group applies its model assignments to the next message in every conversation. To deactivate the current group (falling back to ENV-configured models), select the deactivate option.
Switching the active model group takes effect system-wide on the next message in every conversation, new or existing. A response that is already streaming finishes on the previous model.

Domain-Aware Model Escalation

When the domain classifier detects a specialist domain — by default legal, medical, financial, tax, compliance, or patent (ESCALATION_DOMAINS) — the system automatically escalates model selection beyond the normal role assignments:
  • ReAct mode: The general model is replaced by the reasoning model (registry.get_by_role("reasoning")). This means the Reasoning slot in your Model Group is not only used for DAG model_hint="reasoning" steps — it also serves as the escalation target for domain-specific ReAct tasks.
  • DAG mode: Domain context is injected into the planner prompt, guiding it to assign model_hint="reasoning" to steps requiring specialist accuracy.
This escalation is automatic and requires no configuration beyond having a Reasoning model assigned in your active Model Group (or via the REASONING_LLM_MODEL env var). Related environment variables:
If your workload involves legal, medical, or financial queries, ensure your Reasoning model is a strong reasoner (e.g., o3, claude-opus-4-6, deepseek-reasoner). The automatic escalation relies on this slot being populated with a model that can handle domain-critical accuracy requirements.

ENV フォールバック

アクティブな管理者設定モデルグループがない場合、FIM One は ENV ベースの設定にフォールバックします: 管理者設定モデルは常に ENV 変数よりも優先されます。システムヘルスチェックは両方のソースを考慮します — アクティブなモデルグループまたは有効な ENV 変数のいずれかが設定されている限り、LLM サブシステムは正常と報告されます。 完全な ENV リファレンスについては、環境変数を参照してください。

Export and Import

The Models page supports exporting your entire provider and model configuration (providers, models, and groups) as a JSON file, and importing it on another instance. This is useful for:
  • Migrating configuration between development, staging, and production environments
  • Sharing a known-good model setup with team members
  • Backing up your configuration before making changes
Exported configuration does not include API keys. The import dialog asks for a key for each new provider; providers that already exist keep theirs.