Create π¦οΈπ LangChain apps by just using promptsπ Star to support our work! | εͺιδ½Ώη¨ε₯εε³ε―εε»Ί LangChain εΊη¨η¨εΊγ η»δΈͺstarζ―ζζ们ηε·₯δ½ε§οΌ
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!
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.
Hear ye, hear ye! We've squashed some pesky bugs in the Document loader, ensuring a seamless experience when working with your docs.
Azure users, rejoice! You can now input your custom OpenAI base URL. With this feature, Azure-based URLs are seamlessly integrated.
We believe in perfection. And in our stride towards it, the bugs encountered in the Finalizer module have been addressed and fixed.
With the new chat model feedback mechanism, DemoGPT fixes its own bugs during the generation of chat-based applications.
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!
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.
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.
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.
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.
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! π
We're thrilled to announce the release of DemoGPT v1.2.4! This new version brings a customization property.
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.
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! π
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.
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):
# 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...'}
# Code
import streamlit as st
from langchain import LLMChain
from langchain.chat_models import ChatOpenAI
from langchain.prompts.chat import (ChatPromptTemplate,
HumanMessagePromptTemplate,
SystemMessagePromptTemplate)
...
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! π
The architecture has been updated to include the following steps:
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.
For the current version, the installation remains the same. You can install DemoGPT using the following command:
pip install demogpt
To run the current version, simply use the demogpt command:
demogpt
If you want to run the previous version, you can do so by using the --basic flag:
demogpt --basic
DemoGPT can process prompt based application ideas by refining its own code. At the end, it generates Streamlit application and runs it on the browser.