From e3b51e27132838f64eb2d300b809cbbf0e14f34c Mon Sep 17 00:00:00 2001 From: ajaysi Date: Thu, 16 May 2024 08:55:33 +0530 Subject: [PATCH] AI finance TA writer, yfinance, pandas_ta, WIP --- README.md | 16 ++++++++-------- .../text_generation/gemini_pro_text.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e564ab70..744664df 100644 --- a/README.md +++ b/README.md @@ -14,23 +14,23 @@ If you have 💻 Laptop + 🛜 Internet + 20 minutes, you will be generating blo --- ### AI Tools & Features of Alwrity: -| No. | Alwrity Tool | Description | -|-----|------------------------------------|-------------------------------------------------------------------------------| +| No. | Alwrity Tool | Description | +|-----|------------------------------------|--------------------------------------------------------------------------------| | 1 | AI Blog Writer | Generates blog content based on the latest web research on given keywords. | -| 2 | AI YouTube to Content Writer | Transforms content from provided YouTube URLs into written form. | -| 3 | AI Long Form Content | Creates extensive and detailed articles. | +| 2 | AI YouTube to Content Writer | Transforms content from provided YouTube URLs into written form. | +| 3 | AI Long Form Content | Creates extensive and detailed articles. | | 4 | AI Essay Writer | Produces lengthy essays on various topics, with room for improvement. | | 5 | AI Story Writer | Constructs narratives and stories based on provided backstories and characters.| -| 6 | AI Email Writer | Generates various types of professional letters. | -| 7 | AI Letter Writer | Crafts business letters for formal communication. | +| 6 | AI Email Writer | Generates various types of professional letters. | +| 7 | AI Letter Writer | Crafts business letters for formal communication. | | 8 | AI LinkedIn Blog Post Generator | Develops blog posts optimized for sharing on LinkedIn. | | 9 | AI Instagram Caption Generation | Creates engaging captions for Instagram posts. | | 10 | AI Content Outline Generator | Generates outlines based on keywords gathered from web research. | | 11 | AI Web Researcher | Conducts comprehensive web research and analysis using various methods. | | 12 | AI Content Planning & Calendar | Assists in planning and organizing content with a comprehensive calendar. | | 13 | Create Blog Images | Generates images to complement blog content using Stable Diffusion. | -| 14 | Agentic Content Creation | Explores innovative content creation methods with CrewAI. | - +| 14 | Agentic Content Creation | Explores innovative content creation methods with CrewAI. | +| 15 | AI Finance Writer | Uses ufinance & padnas_ta to write TA report for given stock symbol | --- # AI Content Generation Toolkit - Alwrity diff --git a/lib/gpt_providers/text_generation/gemini_pro_text.py b/lib/gpt_providers/text_generation/gemini_pro_text.py index 16da3ac3..a7bd0c55 100644 --- a/lib/gpt_providers/text_generation/gemini_pro_text.py +++ b/lib/gpt_providers/text_generation/gemini_pro_text.py @@ -36,7 +36,7 @@ def gemini_text_response(prompt, temperature, top_p, n, max_tokens): "max_output_tokens": max_tokens, } # FIXME: Expose model_name in main_config - model = genai.GenerativeModel(model_name="gemini-pro", generation_config=generation_config) + model = genai.GenerativeModel(model_name="gemini-1.5-pro-latest", generation_config=generation_config) try: # text_response = [] response = model.generate_content(prompt, stream=True)