アーキテクチャ: プロバイダー、モデル、グループ
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/v1for 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.
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 へのフォールバックが続く場合
tool_choice="auto" を使用します。
この設定は、構造化出力抽出に使用される強制的なツール選択(DAG プランニング、スキーマアノテーション)にのみ影響します。ReAct エージェントには影響しません。ReAct エージェントは
tool_choice="auto" を使用して自由にツール呼び出しのタイミングを決定します。JSON Mode
Setting name: JSON Mode (stored asjson_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"
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 を明示的に設定してください。
モデルグループ
モデルグループを使用すると、モデルを特定のロールに割り当て、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.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 DAGmodel_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.
REASONING_LLM_MODEL env var).
Related environment variables:
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