Skip to content

Commit 02ab50a

Browse files
author
mike dupont
committed
defeat the zombies
1 parent f14e501 commit 02ab50a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/plugin-groq/src/index.ts

-10
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,6 @@ export const groqPlugin: Plugin = {
504504
logger.log('audioBuffer', audioBuffer);
505505
const baseURL = getCloudflareGatewayBaseURL(runtime, 'groq');
506506

507-
const baseURL = runtime.getSetting('OPENAI_BASE_URL') ?? 'https://api.openai.com/v1';
508-
const baseURL = getCloudflareGatewayBaseURL(runtime, 'groq');
509-
510507
const formData = new FormData();
511508
formData.append('file', new Blob([audioBuffer], { type: 'audio/mp3' }));
512509
formData.append('model', 'whisper-1');
@@ -536,11 +533,6 @@ export const groqPlugin: Plugin = {
536533
runtime.getSetting('GROQ_SMALL_MODEL') ??
537534
runtime.getSetting('SMALL_MODEL') ??
538535
'llama-3.1-8b-instangt';
539-
const baseURL = getCloudflareGatewayBaseURL(runtime, 'groq');
540-
const groq = createGroq({
541-
apiKey: runtime.getSetting('GROQ_API_KEY'),
542-
baseURL,
543-
});
544536

545537
try {
546538
if (params.schema) {
@@ -568,8 +560,6 @@ export const groqPlugin: Plugin = {
568560
}
569561
},
570562
[ModelType.OBJECT_LARGE]: async (runtime, params: ObjectGenerationParams) => {
571-
const baseURL = getCloudflareGatewayBaseURL(runtime, 'groq');
572-
//const baseURL = runtime.getSetting('OPENAI_BASE_URL') ?? 'https://api.openai.com/v1';
573563
const baseURL = getCloudflareGatewayBaseURL(runtime, 'groq');
574564
const groq = createGroq({
575565
apiKey: runtime.getSetting('GROQ_API_KEY'),

0 commit comments

Comments
 (0)