Demogpt

Latest version: v1.2.6.33

Safety actively analyzes 623490 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2.6

---

Overview
We're back with DemoGPT version 1.2.6, further enhancing our module capabilities and providing significant bug fixes. This release brings a Python module to spawn more generic app ideas, addresses issues in the Document loader and Finalizer modules, and paves the way for Azure-based URLs with OpenAI. Plus, there's an exciting addition for chat model feedback!

Python Module for Generic Apps
Expanding our suite of tools, the new Python module allows developers to lean towards more generic app concepts, providing the flexibility to curate and customize as per unique requirements.

Document Loader Bug Fixes
Hear ye, hear ye! We've squashed some pesky bugs in the Document loader, ensuring a seamless experience when working with your docs.

OpenAI Base URL Customization
Azure users, rejoice! You can now input your custom OpenAI base URL. With this feature, Azure-based URLs are seamlessly integrated.

Finalizer Module Bug Fixes
We believe in perfection. And in our stride towards it, the bugs encountered in the Finalizer module have been addressed and fixed.

Chat Model Feedback Mechanism
With the new chat model feedback mechanism, DemoGPT fixes its own bugs during the generation of chat-based applications.

Getting Started
- Fetch the latest version of DemoGPT (v1.2.6) from the releases page.
- Dive into our updated documentation for a clearer understanding of all the new goodies.

Feedback
Your input shapes our output. Encounter a hiccup or have an enhancement in mind? Open an issue on our GitHub repository. We're all ears and eager to refine further!

1.2.5

Overview

Exciting times ahead! We're delighted to roll out DemoGPT version 1.2.5. This release introduces the ability to generate chat-based applications, streamlines OpenAI API Key integration, and includes several document-related bug fixes.

Generate Chat-Based Applications

With DemoGPT v1.2.5, you can now generate chat-based applications right from your prompts! Your generated chat applications will include a rich set of features that allow for dynamic, real-time conversations.

OpenAI API Key Integration

The generated applications will now include a sidebar to input your OpenAI API Key. If you have the key as an environmental variable, you don't need to rewrite it. Otherwise, the generated application expects the key in the sidebar for.

Document-Related Bug Fixes

We're constantly working to improve our document generation capabilities. This update addresses several document-related bugs to provide a smoother, more accurate documentation experience.

Bug Fixes & Improvements
- General performance enhancements and under-the-hood tweaks for a better overall experience.

Getting Started
1. Update to the latest version of DemoGPT (v1.2.5) from the releases page.
2. Explore our revised documentation to get an in-depth understanding of these new features.

Feedback

As always, your feedback is crucial to us. Should you encounter any issues or have any suggestions, don't hesitate to open an issue on our GitHub repository. We're committed to providing you with the best experience possible.

---

**Thank you for being an invaluable member of our community. Happy coding! 🌟**

1.2.4

Overview

We're thrilled to announce the release of DemoGPT v1.2.4! This new version brings a customization property.

Editing The Generated Code

Now, after you generate the code from your prompt, there is an **Edit** button under the code. Once you press it, you will be able to change the code and play however you like. Once you are done, press **Save & Rerun** button, it will rerender the code and open up the new app.

Bug Fixes & Improvements
- As always, we've squashed a few bugs and made some under-the-hood improvements to ensure a smoother experience.

Getting Started
1. Update to the latest version of DemoGPT from the releases page.
2. Check out our updated documentation for detailed information on the new features.

Feedback
Your feedback is invaluable to us. If you encounter any issues or have suggestions, please open an issue on our GitHub repo. We're always looking to improve and provide you with the best experience.

---

**Thanks for being a part of our community! Happy coding! 🚀**

1.2.3

Overview

We're thrilled to announce the release of DemoGPT v1.2.3! This new version brings a plethora of enhancements, integrations, and features that will elevate your experience. From quick file translations to a smarter interface, we've got you covered.

🦜 Integrated with LangSmith
- Seamlessly integrate with LangSmith for even better language processing and understanding.

📚 QA over Docs
- Have a burning question? DemoGPT now supports QA over documents. Just point it to a document, and ask away!

🗂 Quick File Translations
- **Supported Formats**: pptx, csv, pdf, and more.
- Instantly translate documents across multiple languages with high accuracy.

🤖 Speedy Summaries
- Get concise and precise summaries for lengthy documents or texts in seconds.

🐍 Python Interface
- For those who love scripting, we've introduced a Python interface. Connect and interact with DemoGPT directly from your Python scripts.
python
from demogpt import DemoGPT
agent = DemoGPT(model_name="gpt-3.5-turbo") if OPENAI_API_KEY is not set in env variables, put it with openai_api_key argument
instruction = "Your instruction here"
title = "Your title here"
code = ""
for phase in agent(instruction=instruction, title=title):
print(phase) this will display the resulting json for each generation stage
if "code" in phase:
code = phase["code"] final code
print(code)

Example Output (truncated):

bash
phases
{'stage': 'draft', 'completed': False, 'percentage': 60, ...}
{'stage': 'draft', 'completed': False, 'percentage': 64, 'code': 'Get the source language ...'}
...
{'stage': 'final', 'completed': True, 'percentage': 100, ... , 'code': 'import streamlit as st\n...'}


python
Code
import streamlit as st
from langchain import LLMChain
from langchain.chat_models import ChatOpenAI
from langchain.prompts.chat import (ChatPromptTemplate,
HumanMessagePromptTemplate,
SystemMessagePromptTemplate)
...


🎭 Role Play
- Enhance your chat experiences! DemoGPT can now adapt to different roles, making conversations more engaging and scenario-driven.

Bug Fixes & Improvements
- As always, we've squashed a few bugs and made some under-the-hood improvements to ensure a smoother experience.

Getting Started
1. Update to the latest version of DemoGPT from the releases page.
2. Check out our updated documentation for detailed information on the new features.
3.
Feedback
Your feedback is invaluable to us. If you encounter any issues or have suggestions, please open an issue on our GitHub repo. We're always looking to improve and provide you with the best experience.

---

**Thanks for being a part of our community! Happy coding! 🚀**

1.2.1

1.2.0

What's Changed


![plan_based_pipeline](https://github.com/melih-unsal/DemoGPT/assets/34304254/ad7e25e8-258f-4d89-9b1e-3d392c224cf1)

New DemoGPT Pipeline
The architecture has been updated to include the following steps:
- **Generates plan from the instruction:** The new pipeline starts by generating a plan based on the given instruction.
- **Generates tasks from the plan and instruction:** Tasks are then generated from the plan and instruction, providing a clear roadmap for the code.
- **Transfers tasks into code snippets:** The tasks are converted into code snippets, making the development process more modular.
- **Combines code snippets into a final code:** Finally, the code snippets are combined to create the final code, streamlining the entire process.

Additional Changes
- **Model Selection:** Users can now select models, providing more flexibility and customization.
- **Bug Fixes:** Several bugs have been resolved on Windows OS, enhancing the stability and performance on this platform.

Future Release Preview
In the future release, all the steps will be under control with a self-refining strategy where the model refines its own response for each step. Additionally, all the successfully generated steps will be put into a database. This means that next time, similar ones will be selected, eliminating the need to refine redundantly. This will lead to more efficient code generation and a more streamlined process.

Installation and Usage

For the current version, the installation remains the same. You can install DemoGPT using the following command:
bash
pip install demogpt

Running the Current Version
To run the current version, simply use the **demogpt** command:
bash
demogpt

Running the Previous Version
If you want to run the previous version, you can do so by using the **--basic** flag:
bash
demogpt --basic

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.