feat(providers): support custom API protocols
This commit is contained in:
@@ -1371,13 +1371,18 @@ export const settingsDict = {
|
||||
'settings.providers.page.custom.optionLabel': 'Other / Custom',
|
||||
'settings.providers.page.custom.title': 'Custom provider',
|
||||
'settings.providers.page.custom.editTitle': 'Edit custom provider',
|
||||
'settings.providers.page.custom.description': 'Add an OpenAI-compatible provider with a base URL, credentials, and model list. Saved to OpenCode config so it works in chat like any other provider.',
|
||||
'settings.providers.page.custom.description': 'Add a provider with a base URL, credentials, model list, and supported API protocol. Saved to OpenCode config for use in chat.',
|
||||
'settings.providers.page.custom.field.providerID.label': 'Provider ID',
|
||||
'settings.providers.page.custom.field.providerID.placeholder': 'my-provider',
|
||||
'settings.providers.page.custom.field.providerID.info': 'Lowercase letters, numbers, hyphens, and underscores. Used as the OpenCode provider id.',
|
||||
'settings.providers.page.custom.field.name.label': 'Display name',
|
||||
'settings.providers.page.custom.field.name.placeholder': 'My Provider',
|
||||
'settings.providers.page.custom.field.name.info': 'Shown in the provider and model pickers.',
|
||||
'settings.providers.page.custom.field.protocol.label': 'API protocol',
|
||||
'settings.providers.page.custom.field.protocol.info': 'Choose the request format implemented by this API.',
|
||||
'settings.providers.page.custom.field.protocol.openaiChat': 'OpenAI Chat Completions',
|
||||
'settings.providers.page.custom.field.protocol.openaiResponses': 'OpenAI Responses',
|
||||
'settings.providers.page.custom.field.protocol.anthropicMessages': 'Anthropic Messages',
|
||||
'settings.providers.page.custom.field.baseURL.label': 'Base URL',
|
||||
'settings.providers.page.custom.field.baseURL.placeholder': 'https://api.example.com/v1',
|
||||
'settings.providers.page.custom.field.baseURL.info': 'OpenAI-compatible API base URL. Must start with http:// or https://.',
|
||||
|
||||
Reference in New Issue
Block a user