Keyword, Audio to Blog - WIP

This commit is contained in:
AjaySi
2024-04-09 12:30:04 +05:30
parent 8a2ef6ef26
commit d968e06a9d
4 changed files with 15 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ def llm_text_gen(prompt):
# Check if API key is provided for the given gpt_provider
get_api_key(gpt_provider)
logger.info(f"Model: {model}, Temp: {temperature}, MaxTokens: {max_tokens}, TopP: {top_p}, N: {n}, FrequencyPenalty: {fp}")
logger.info(f"Temp: {temperature}, MaxTokens: {max_tokens}, TopP: {top_p}, N: {n}, FrequencyPenalty: {fp}")
# Perform text generation using the specified LLM parameters and prompt
if 'google' in gpt_provider.lower():
try: