1 parent
a8f689e39c
commit
c340aec110
59 files changed
+1108
-1590
No files matched your search
+4
-4
@@ -34,9 +34,9 @@ import { isTransportFailure } from './hosts.js'
|
||||
import { ambientFetch, boundedFetch } from './request.js'
|
||||
|
||||
/** Search provider that always searches through Geek2API. */
|
||||
export const GEEK2API_SEARCH_PROVIDER_ID = 'geek2api'
|
||||
export const GEEK2API_SEARCH_PROVIDER_ID = 'infstarapi'
|
||||
/** Search provider that routes by the initiating session's model provider. */
|
||||
export const GEEK2API_AUTO_SEARCH_PROVIDER_ID = 'geek2api-auto'
|
||||
export const GEEK2API_AUTO_SEARCH_PROVIDER_ID = 'infstarapi-auto'
|
||||
/** Both ids this plugin registers; neither may serve as its own fallback. */
|
||||
export const OWN_SEARCH_PROVIDER_IDS = Object.freeze([GEEK2API_SEARCH_PROVIDER_ID, GEEK2API_AUTO_SEARCH_PROVIDER_ID])
|
||||
/** DSH's built-in search provider, the fallback when nothing else is known. */
|
||||
@@ -45,7 +45,7 @@ export const DSH_SEARCH_PROVIDER_FALLBACK = 'deepseek-official'
|
||||
/** Search routing the user picks. */
|
||||
export const SEARCH_MODE_DEFAULT = 'default'
|
||||
export const SEARCH_MODE_AUTO = 'auto'
|
||||
export const SEARCH_MODE_GEEK2API = 'geek2api'
|
||||
export const SEARCH_MODE_GEEK2API = 'infstarapi'
|
||||
export const SEARCH_MODES = Object.freeze([SEARCH_MODE_DEFAULT, SEARCH_MODE_AUTO, SEARCH_MODE_GEEK2API])
|
||||
|
||||
/** Search backends the user picks between. */
|
||||
@@ -58,7 +58,7 @@ export const SEARCH_BACKENDS = Object.freeze([SEARCH_BACKEND_CLAUDE, SEARCH_BACK
|
||||
* input tokens). DeepSeek is not offered: this gateway's DeepSeek groups drop
|
||||
* the server tool and the model answers without searching.
|
||||
*/
|
||||
export const DEFAULT_SEARCH_BACKEND = SEARCH_BACKEND_CLAUDE
|
||||
export const DEFAULT_SEARCH_BACKEND = SEARCH_BACKEND_GPT
|
||||
|
||||
/** The model each backend searches with. */
|
||||
export const SEARCH_BACKEND_MODELS = Object.freeze({
|
||||
|
||||
Reference in new issue
Block a user