Skip to content

mppx@0.2.6

Choose a tag to compare

@github-actions github-actions released this 19 Feb 00:27
· 410 commits to main since this release
fc49e26

Patch Changes

  • 83c3bab: - Added title and description options to Proxy.create config, used to populate the llms.txt heading and description.

    const proxy = Proxy.create({
      title: 'My AI Gateway',
      description: 'A paid proxy for LLM and AI services.',
      services: [...]
    })
    • Added title, description, and docsLlmsUrl properties to Service type and Service.from config.
    Service.from('my-api', {
      baseUrl: 'https://api.example.com',
      title: 'My API',
      description: 'A custom API service.',
      docsLlmsUrl: 'https://example.com/llms.txt',
      routes: { ... },
    })
    
    // or with per-endpoint docs
    Service.from('my-api', {
      baseUrl: 'https://api.example.com',
      docsLlmsUrl: (endpoint) =>
        endpoint
          ? `https://example.com/api/${encodeURIComponent(endpoint)}.md`
          : 'https://example.com/llms.txt',
      routes: { ... },
    })