* Add Koboldcpp as compatible endpoint Koboldcpp is an easy to use API server compatible with both the KoboldAI API and OpenAI API. In this case its OpenAI API is compatible with continue. The OpenAI API is enabled by default. * Add KoboldCpp provider to Local providers KoboldCpp is a standalone API server forked from Llamacpp, it comes with its own API as well as an OpenAI compatible server tested to be compatible with Continue. Koboldcpp allows easy installation due to its portable nature and has OpenAI enabled out of the box. Supports anything from CPU, CUDA, Vulkan, etc and maintained support for older GGML formats as well as unique enhancements such as its Context Shifting implementation. Koboldcpp is also open source under the AGPLv3 allowing anyone to alter its code.
2.2 KiB
2.2 KiB
OpenAI
The OpenAI class can be used to access OpenAI models like GPT-4, GPT-4 Turbo, and GPT-3.5 Turbo.
Azure OpenAI Service
If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant. After applying for access here, you will typically hear back within only a few days. Once you have access, set up a model in config.json like so:
"models": [{
"title": "Azure OpenAI",
"provider": "openai",
"model": "gpt-4",
"apiBase": "https://my-azure-openai-instance.openai.azure.com/",
"engine": "my-azure-openai-deployment",
"apiVersion": "2023-07-01-preview",
"apiType": "azure",
"apiKey": "<MY_API_KEY>"
}]
The easiest way to find this information is from the chat playground in the Azure OpenAI portal. Under the "Chat Session" section, click "View Code" to see each of these parameters.
OpenAI compatible servers / APIs
OpenAI compatible servers
OpenAI compatible APIs
If you are using an OpenAI compatible server / API, you can change the apiBase like this:
{
"models": [
{
"title": "OpenAI-compatible server / API",
"provider": "openai",
"model": "MODEL_NAME",
"apiKey": "EMPTY",
"apiBase": "http://localhost:8000"
}
]
}