fix api enhancer

This commit is contained in:
KevIsDev 2024-10-31 01:38:35 +00:00 committed by KevIsDev
parent a93e91c433
commit 808d751f2f
4 changed files with 3 additions and 4 deletions

View File

@ -27,7 +27,7 @@ export function ProviderSelector() {
'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo', 'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo',
'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo', 'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo',
'mistralai/Mixtral-8x7B-Instruct-v0.1', 'mistralai/Mixtral-8x7B-Instruct-v0.1',
// Add more Together AI models here // You can add more Together AI models here
]; ];
return ( return (

View File

@ -1,5 +1,5 @@
import { atom } from 'nanostores'; import { atom } from 'nanostores';
// TODO: Add more providers
export type Provider = 'anthropic' | { type: 'together', model: string }; export type Provider = 'anthropic' | { type: 'together', model: string };
export const providerStore = atom<Provider>('anthropic'); export const providerStore = atom<Provider>('anthropic');

View File

@ -43,7 +43,6 @@ async function enhancerAction({ context, request }: ActionFunctionArgs) {
.map(parseStreamPart) .map(parseStreamPart)
.map((part) => part.value) .map((part) => part.value)
.join(''); .join('');
controller.enqueue(encoder.encode(processedChunk)); controller.enqueue(encoder.encode(processedChunk));
}, },
}); });