સામગ્રી પર જાઓ

Bokyaa રાઉટર સાથે VS Code chat વાપરો

Bokyaa team ·

VS Code chat કોઈ custom endpoint ને language model તરીકે વાપરી શકે છે. Bokyaa રાઉટર OpenAI Chat Completions ફૉર્મેટ સંભાળે છે, એટલે તે એ endpoint બની શકે છે.

શરૂ કરતાં પહેલાં

  1. Bokyaa ઍપમાં Router ખોલો અને ઓછામાં ઓછું એક પ્રોવાઇડર કનેક્શન ઉમેરો.
  2. રાઉટર કી બનાવો. રાઉટર કી માટે એવો પ્લાન જોઈએ જેમાં તે સામેલ હોય; કિંમતનું પેજ જુઓ. કી એક જ વાર બતાવાય છે, એટલે ત્યારે જ કૉપી કરી લો.

endpoint ઉમેરો

Command Palette ખોલો અને Chat: Manage Language Models ચલાવો, Add Models પસંદ કરો, પછી Custom Endpoint. VS Code chatLanguageModels.json ખોલે છે. તેમાં આ ઉમેરો:

[
  {
    "name": "Bokyaa router",
    "vendor": "customendpoint",
    "apiKey": "${input:bokyaaRouterKey}",
    "apiType": "chat-completions",
    "models": [
      {
        "id": "auto",
        "name": "Bokyaa auto",
        "url": "https://api.bokyaa.com/v1/chat/completions",
        "toolCalling": true,
        "vision": false,
        "maxInputTokens": 128000,
        "maxOutputTokens": 16000
      }
    ]
  }
]

input variable resolve કરતી વખતે VS Code કી (sk-bky-...) માગે છે, એટલે કી ફાઇલની બહાર રહે છે. maxInputTokens અને maxOutputTokens ને તમે જે મોડલ તરફ રાઉટ કરો છો તેની મર્યાદા મુજબ સેટ કરો. auto મોડલ નામ પસંદગી રાઉટર પર છોડે છે.

સ્રોત

code.visualstudio.com/docs/copilot/customization/language-models, custom endpoint વિભાગ, read 2026-11-08. ટૂલ્સ બદલાતાં રહે છે; કોઈ પગલું હવે મેળ ન ખાય તો એ ટૂલનું પોતાનું પેજ અનુસરો.