Skip to content

Commit

Permalink
fix api enhancer
Browse files Browse the repository at this point in the history
  • Loading branch information
xKevIsDev committed Oct 31, 2024
1 parent a93e91c commit 808d751
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/chat/ProviderSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion app/lib/.server/llm/stream-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ export function streamText(messages: Messages, env: Env, provider: Provider, opt
}))),
...options,
});
}
}
2 changes: 1 addition & 1 deletion app/lib/stores/provider.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { atom } from 'nanostores';

// TODO: Add more providers
export type Provider = 'anthropic' | { type: 'together', model: string };

export const providerStore = atom<Provider>('anthropic');
Expand Down
1 change: 0 additions & 1 deletion app/routes/api.enhancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ async function enhancerAction({ context, request }: ActionFunctionArgs) {
.map(parseStreamPart)
.map((part) => part.value)
.join('');

controller.enqueue(encoder.encode(processedChunk));
},
});
Expand Down

0 comments on commit 808d751

Please sign in to comment.