'use strict';
import { createGroq } from '@ai-sdk/groq';
import { generateText, streamText } from 'ai';
import 'dotenv/config';
import { getStringEnvSetting } from '../../../fd-toolbox/infra/env-functions.js';
import { envSettingKeys } from '../../common/infra/env-setting-keys.js';

var __defProp=Object['defineProperty'],__name=(_0x26e6c9,_0x55e0f0)=>__defProp(_0x26e6c9,'name',{'value':_0x55e0f0,'configurable':!![]});const llamaVersion='llama-3.3-70b-versatile',groq=createGroq({'apiKey':getStringEnvSetting(envSettingKeys['aiApiKey'])??void(-0x3*-0x827+0x23a6+-0x3c1b)});async function getAiGroqGeneratedText(_0x38c3ab){const _0x5e322a=await generateText({'model':groq(getStringEnvSetting(envSettingKeys['aiModelName'])??llamaVersion),'prompt':_0x38c3ab['prompt'],'system':_0x38c3ab['systemPrompt'],'tools':_0x38c3ab['tools']});return _0x5e322a;}__name(getAiGroqGeneratedText,'getAiGroqGeneratedText');async function getAiGroqStreamText(_0x961996){const _0x48bb6f=streamText({'model':groq(getStringEnvSetting(envSettingKeys['aiModelName'])??llamaVersion),'prompt':_0x961996['prompt'],'system':_0x961996['systemPrompt'],'tools':_0x961996['tools']});return _0x48bb6f;}__name(getAiGroqStreamText,'getAiGroqStreamText');

export { getAiGroqGeneratedText, getAiGroqStreamText };
