diff --git a/components/Endpoint/Horde.tsx b/components/Endpoint/Horde.tsx index be14d59..6c5bd53 100644 --- a/components/Endpoint/Horde.tsx +++ b/components/Endpoint/Horde.tsx @@ -1,4 +1,4 @@ -import { hordeHeader } from '@constants/Inference' +import { hordeHeader } from '@constants/APIState/HordeAPI' import { FontAwesome, MaterialIcons } from '@expo/vector-icons' import { Global, Logger, Style } from '@globals' import { useState, useEffect, useRef } from 'react' diff --git a/constants/APIState/HordeAPI.ts b/constants/APIState/HordeAPI.ts index d99f06c..d81e67c 100644 --- a/constants/APIState/HordeAPI.ts +++ b/constants/APIState/HordeAPI.ts @@ -6,6 +6,12 @@ import { nativeApplicationVersion } from 'expo-application' import { APIBase, APISampler } from './BaseAPI' +export const hordeHeader = () => { + return { + 'Client-Agent': `ChatterUI:${nativeApplicationVersion}:https://github.com/Vali-98/ChatterUI`, + } +} + class HordeAPI extends APIBase { samplers: APISampler[] = [ { externalName: 'max_context_length', samplerID: SamplerID.CONTEXT_LENGTH }, @@ -177,11 +183,5 @@ class HordeAPI extends APIBase { } } -export const hordeHeader = () => { - return { - 'Client-Agent': `ChatterUI:${nativeApplicationVersion}:https://github.com/Vali-98/ChatterUI`, - } -} - const hordeAPI = new HordeAPI() export default hordeAPI