diff --git a/app/components/chat/ProviderSelector.tsx b/app/components/chat/ProviderSelector.tsx index 97cc0e6cd..2b35334ab 100644 --- a/app/components/chat/ProviderSelector.tsx +++ b/app/components/chat/ProviderSelector.tsx @@ -27,7 +27,7 @@ export function ProviderSelector() { 'meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo', 'meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo', 'mistralai/Mixtral-8x7B-Instruct-v0.1', - // Add more Together AI models here + // You can add more Together AI models here ]; return ( diff --git a/app/lib/.server/llm/stream-text.ts b/app/lib/.server/llm/stream-text.ts index c882dd858..1b845a20e 100644 --- a/app/lib/.server/llm/stream-text.ts +++ b/app/lib/.server/llm/stream-text.ts @@ -41,4 +41,4 @@ export function streamText(messages: Messages, env: Env, provider: Provider, opt }))), ...options, }); -} +} \ No newline at end of file diff --git a/app/lib/stores/provider.ts b/app/lib/stores/provider.ts index 25e7c2638..fa1c8f70c 100644 --- a/app/lib/stores/provider.ts +++ b/app/lib/stores/provider.ts @@ -1,5 +1,5 @@ import { atom } from 'nanostores'; - +// TODO: Add more providers export type Provider = 'anthropic' | { type: 'together', model: string }; export const providerStore = atom('anthropic'); diff --git a/app/routes/api.enhancer.ts b/app/routes/api.enhancer.ts index 46a074582..ff9a91bd9 100644 --- a/app/routes/api.enhancer.ts +++ b/app/routes/api.enhancer.ts @@ -43,7 +43,6 @@ async function enhancerAction({ context, request }: ActionFunctionArgs) { .map(parseStreamPart) .map((part) => part.value) .join(''); - controller.enqueue(encoder.encode(processedChunk)); }, });