Add Oh My Pi support through the OpenAI Responses API
Discover CPA models dynamically and route the managed provider to /v1/responses.
This commit is contained in:
1 parent
aba62fa6bf
commit
d7e39e8fdc
23 files changed
+414
-20
No files matched your search
@@ -1159,6 +1159,7 @@ export const jaOverrides = {
|
||||
'agents.description.zcode': 'CPA の Anthropic Messages API と動的モデルカタログを使用',
|
||||
'agents.description.kimiCode': 'CPA の OpenAI Chat Completions API と動的モデルカタログを使用',
|
||||
'agents.description.grokBuild': 'CPA の OpenAI Chat Completions API とカスタムモデルカタログを使用',
|
||||
'agents.description.omp': 'OpenAI Responses エンドポイントから CPA モデルを動的に検出',
|
||||
'agents.description.pi': 'CLIProxyAPI プロバイダーを使用して Pi CLI のモデルを動的に読み込みます',
|
||||
'agents.clients.pages': 'クライアントのページ',
|
||||
'agents.clients.previous': '前のクライアントページ',
|
||||
|
||||
@@ -1159,6 +1159,7 @@ export const en: Record<MessageKey, string> = {
|
||||
'agents.description.zcode': 'Uses the CPA Anthropic Messages API and dynamic model catalog',
|
||||
'agents.description.kimiCode': 'Uses the CPA OpenAI Chat Completions API and dynamic model catalog',
|
||||
'agents.description.grokBuild': 'Uses the CPA OpenAI Chat Completions API and custom model catalog',
|
||||
'agents.description.omp': 'Discovers CPA models through the OpenAI Responses endpoint',
|
||||
'agents.description.pi': 'Loads models dynamically in Pi through the CLIProxyAPI provider',
|
||||
'agents.clients.pages': 'Client pages',
|
||||
'agents.clients.previous': 'Previous client page',
|
||||
|
||||
@@ -1158,6 +1158,7 @@ export const zhCN = {
|
||||
'agents.description.zcode': '使用 CPA 的 Anthropic Messages 接口和动态模型目录',
|
||||
'agents.description.kimiCode': '使用 CPA 的 OpenAI Chat Completions 接口和动态模型目录',
|
||||
'agents.description.grokBuild': '使用 CPA 的 OpenAI Chat Completions 接口和自定义模型目录',
|
||||
'agents.description.omp': '通过 OpenAI Responses 接口动态发现 CPA 模型',
|
||||
'agents.description.pi': '使用 Pi CLI 和 CLIProxyAPI 提供方动态加载模型',
|
||||
'agents.clients.pages': '客户端分页',
|
||||
'agents.clients.previous': '上一页客户端',
|
||||
|
||||
@@ -207,6 +207,7 @@ function createAgentStatuses() {
|
||||
['antigravity-cli', 'Antigravity CLI'],
|
||||
['kimi-code', 'Kimi Code'],
|
||||
['grok-build', 'Grok Build'],
|
||||
['omp', 'Oh My Pi'],
|
||||
['pi', 'Pi'],
|
||||
] as const;
|
||||
const claudeMappings = {
|
||||
|
||||
@@ -82,6 +82,7 @@ type AgentClientId =
|
||||
| 'antigravity-cli'
|
||||
| 'kimi-code'
|
||||
| 'grok-build'
|
||||
| 'omp'
|
||||
| 'pi';
|
||||
|
||||
type ClaudeModelMappingClientId = 'claude-code' | 'claude-desktop';
|
||||
@@ -234,7 +235,7 @@ type AgentDefinition = {
|
||||
name: string;
|
||||
icon?: string;
|
||||
Icon?: ComponentType<{ size?: number; 'aria-hidden'?: boolean }>;
|
||||
descriptionKey: 'agents.description.claudeCode' | 'agents.description.claudeDesktop' | 'agents.description.codex' | 'agents.description.opencode' | 'agents.description.openclaw' | 'agents.description.hermes' | 'agents.description.deepseekHarness' | 'agents.description.zcode' | 'agents.description.workbuddy' | 'agents.description.antigravityCli' | 'agents.description.kimiCode' | 'agents.description.grokBuild' | 'agents.description.pi';
|
||||
descriptionKey: 'agents.description.claudeCode' | 'agents.description.claudeDesktop' | 'agents.description.codex' | 'agents.description.opencode' | 'agents.description.openclaw' | 'agents.description.hermes' | 'agents.description.deepseekHarness' | 'agents.description.zcode' | 'agents.description.workbuddy' | 'agents.description.antigravityCli' | 'agents.description.kimiCode' | 'agents.description.grokBuild' | 'agents.description.omp' | 'agents.description.pi';
|
||||
};
|
||||
|
||||
type AgentSubpageId = 'core' | 'management' | 'sessions';
|
||||
@@ -276,6 +277,12 @@ const agentDefinitions: AgentDefinition[] = [
|
||||
icon: opencodeIcon,
|
||||
descriptionKey: 'agents.description.opencode',
|
||||
},
|
||||
{
|
||||
id: 'omp',
|
||||
name: 'Oh My Pi',
|
||||
icon: piIcon,
|
||||
descriptionKey: 'agents.description.omp',
|
||||
},
|
||||
{
|
||||
id: 'pi',
|
||||
name: 'Pi',
|
||||
@@ -341,6 +348,7 @@ const agentSubpages: AgentSubpageDefinition[] = [
|
||||
'workbuddy',
|
||||
'antigravity-cli',
|
||||
'kimi-code',
|
||||
'omp',
|
||||
'grok-build',
|
||||
'pi',
|
||||
],
|
||||
|
||||
@@ -9,6 +9,7 @@ export type AgentConfigurationClientId =
|
||||
| 'zcode'
|
||||
| 'kimi-code'
|
||||
| 'grok-build'
|
||||
| 'omp'
|
||||
| 'pi';
|
||||
|
||||
export type AgentConfigurationModificationState = 'unconfigured' | 'applied' | 'invalid';
|
||||
|
||||
Reference in new issue
Block a user