readJsonObject (settings/model-settings-utils.ts)

oh-my-ppt · src/renderer/src/components/settings/model-settings-utils.ts · typescript · Apache-2.0
ai

Utility functions for handling image model configuration and form creation in a renderer.

// Source: https://github.com/arcsin1/oh-my-ppt | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works that You
// Provided via justclaw.it.com; keep this notice with the code.
import type { ImageModelConfig, ImageModelProvider, ModelConfig } from '../../lib/ipc'
import type { ImageModelForm, ModelForm } from './types'
import { DEFAULT_THINKING_PARAMETER_MODE } from '@shared/model-config.js'

export const IMAGE_PROVIDER_OPTIONS: Array<{ value: ImageModelProvider; label: string }> = [
  { value: 'agnes', label: 'Agnes AI' },
  { value: 'jimeng', label: '即梦3.0' },
  { value: 'jimeng4', label: '即梦4.0' },
  { value: 'seedream', label: 'Seedream' },
  { value: 'siliconflow', label: '硅基流动' },
  { value: 'openaiCompatible', label: 'OpenAI 兼容' },
  { value: '

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key