WorkBuddy

Enter this site and your key in WorkBuddy custom model settings.

WorkBuddy is Tencent's desktop assistant for office work and coding. Add this site as a custom model; it only supports the OpenAI-compatible format.

  • Protocol: OpenAI-compatible (Chat Completions)
  • Base URL: https://tokenfunc.com/v1
  • Models: any, for example deepseek-chat
  1. Open the model settings

    Click your avatar at the bottom left, go to Settings → Models and click Add Model.

    Screenshot pendingThe Models page in WorkBuddy settings with the Add Model buttontools/workbuddy-models.png

  2. Choose the custom provider and fill it in

    Choose Custom as the provider and fill in:

    FieldValue
    URLhttps://tokenfunc.com/v1
    API Keysk-xxxxxxxxxxxxxxxx
    Model namedeepseek-chat

    WorkBuddy appends /chat/completions itself, so stop at /v1 here.

    Screenshot pendingThe custom model dialog with URL, API Key and model name filled intools/workbuddy-custom.png

  3. Set the model capabilities if needed

    Under Advanced, tick "Supports tool calls", "Supports images" and so on to match the model. Keep the defaults if unsure.

    If you turn on the Custom protocol switch in the advanced settings, the URL must be the full path: https://tokenfunc.com/v1/chat/completions.

  4. Save and verify

    After saving, open the model picker in the chat box, find the custom model group, select the new model and send a message.

    On first use WorkBuddy may show a relay service risk warning. That is its notice for non-official addresses; confirm the address is https://tokenfunc.com and continue.

Adding many models with the config file

To add several models at once, edit ~/.codebuddy/models.json (Windows: %USERPROFILE%\.codebuddy\models.json). Changes apply without a restart. Note that url here must be the full path:

~/.codebuddy/models.json
{
  "models": [
    {
      "id": "deepseek-chat",
      "name": "tokenfunc deepseek-chat",
      "vendor": "OpenAI",
      "apiKey": "sk-xxxxxxxxxxxxxxxx",
      "url": "https://tokenfunc.com/v1/chat/completions",
      "maxInputTokens": 200000,
      "maxOutputTokens": 8192,
      "supportsToolCall": true,
      "supportsImages": false
    }
  ]
}

Save the file as UTF-8 without a BOM, or it may fail to load.

Troubleshooting

SymptomCause and fix
404The URL in the UI is missing /v1; or Custom protocol is on without the full path; or url in models.json stops at /v1
401Wrong key or no quota left. Check it on API Keys
No Custom providerYour enterprise admin disabled custom models. Ask the admin
Model does not show up after addingThe model ID clashes with a built-in model. Use another name or update to the latest version
400 when sending an imageThe model cannot read images, or "Supports images" is not ticked