askai
OpenAI-DotNet
askai | OpenAI-DotNet | |
---|---|---|
1,756 | 36 | |
86 | 601 | |
- | 8.5% | |
10.0 | 7.7 | |
over 1 year ago | 11 days ago | |
TypeScript | C# | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
askai
-
Website Optimization Using Strapi, Astro.js and OpenAI
We'll use several interesting technologies to achieve this: Strapi CMS to take care of the content management and backend, Astro which is a great new technology for quickly creating blazing fast frontend apps, and ChatGPT to provide the article summaries.
-
OpenAI Bought Chatgpt.com
I was confused why https://chat.openai.com suddenly redirects to https://chatgpt.com which results in connection refused. Turns out chatgpt.com is in many blocklists (e.g. Pi-Hole) due to it being a potentially unsafe Domain before OpenAI acquiring it. So heads up if you use Pi-Hole / AdGuard etc.!
- The ChatGPT URL have changed
- Chat.openai.com now redirects (me) to chatgpt.com
-
Unofficial ChatGPT API
This API allows you to interact with ChatGPT programmatically, and I've built some cool agents on top of it. Check out the code and let me know what you think! :
ChatGPT unofficial API :
This project is a Node.js application that interacts with the ChatGPT conversational AI model using Puppeteer, a Node.js library for automating web browsers.
Files chatgptv1.js: This file contains the main logic for the ChatGPT bot, including methods for initializing the browser, sending messages, receiving replies, and handling errors.
bart.js: This file contains a function that uses the Cloudflare API to summarize the conversation history when an error occurs, in order to resume the conversation.
twochatbotsconv.js: This file is simple use of the API , which creates two instances of the ChatGPT class, initiates a conversation between them, and saves the conversation history to a file.
.env: This file contains the API token for the Cloudflare API, which is used in the bart.js file.
Dependencies :
puppeteer: A Node.js library for automating web browsers. fs: The built-in file system module in Node.js. winston: A logging library for Node.js. crypto: The built-in cryptography module in Node.js. axios: A popular HTTP client library for Node.js. dotenv: A zero-dependency module that loads environment variables from a .env file.
Usage:
Install the dependencies by running npm install in your project directory. Create a .env file in the project directory and add your Cloudflare API token:
API_TOKEN=YourfreeCloudFlareAPIToken In your code, create a new instance of the ChatGPT class and use the sendMessage and getReply methods to interact with the ChatGPT model:
const ChatGPT = require('./chatgptv1');
const chatgpt = new ChatGPT(); await chatgpt.initializeBrowser();
await chatgpt.sendMessage('Hello, ChatGPT!'); const reply = await chatgpt.getReply(); console.log(reply);
await chatgpt.closeBrowser(); If an error occurs during the conversation, the handleError method will attempt to save the conversation history and resume the conversation using the summarized context.
Before Running :
run Google chrom in the debug mode using 9220 port , run : google-chrome-stable --remote-debugging-port=9222
Customization :
You can customize the behavior of the ChatGPT bot by passing options to the ChatGPT constructor:
chatbotUrl: The URL of the ChatGPT interface (default: 'https://chat.openai.com/'). headless: Whether to run the browser in headless mode (default: false). saveConversationCallback: A callback function that will be called with the conversation summary and the conversation file name when an error occurs.
License:
This project is licensed under the MIT License.
- It's a shame – chat.openai.com redirect to chatgpt.com is broken
-
Building a Basic Forex Rate Assistant Using Agents for Amazon Bedrock
After wrestling with it for a bit and eventually giving up, I instead turned to ChatGPT to see if it is smart enough for the task. With my free plan, I asked ChatGPT 3.5 the following:
- Learn to ask for help
-
How to build a custom GPT: Step-by-step tutorial
Go to chat.openai.com and log in
- Chat.openai.com no longer requires login
OpenAI-DotNet
-
Website Optimization Using Strapi, Astro.js and OpenAI
Okay, now we've confirmed the API endpoint is working, let's connect it to OpenAI first, install the OpenAI package, navigate to the route directory, and run the command below in our terminal
- OpenAI page changed: new Search picture
- OpenAI Website Relaunch
-
Simplify Restaurant Reservations with Lyzr.ai's Chatbot-Powered App
You can obtain an OpenAI API key by visiting the OpenAI website.
-
Build an AI Code Translator (and Optimizer) Using ToolJet and OpenAI
OpenAI Account: Register for an OpenAI account to utilize AI-powered features in your ToolJet applications. Sign up here.
-
KodiBot - Local Chatbot App for Desktop
KodiBot is a desktop app that enables users to run their own AI chat assistants locally and offline on Windows, Mac, and Linux operating systems. KodiBot is a standalone app and does not require an internet connection or additional dependencies to run local chat assistants. It supports both Llama.cpp compatible models and OpenAI API.
-
Sentiment Analysis with PubNub Functions and HuggingFace
At this point, probably everyone has heard about OpenAI, GPT-4, Claude or any of the popular Large Language Models (LLMs). However, using these LLMs in a production environment can be expensive or nondeterministic regarding its results. I guess that is the downside of being good at everything; you could be better at performing one specific task. This is where HuggingFace can utilized. HuggingFace provides open-source AI and machine learning models that can easily be deployed on HuggingFace itself or third-party systems such as Amazon SageMaker or Azure ML. You can interface with these deployments through an API and control the scaling of these models, which makes them perfectly suited for production environments. These models range in size but are generally small AI models that are good at doing one specific task. With capabilities to fine-tune these models, or use the pre-trained model for specific tasks, embedding them into various applications becomes more efficient, enhancing automation and performance. Combining these models can create new and intricate AI applications. In this case, by utilizing HuggingFace models, you wouldn’t have to depend on a production application on a third-party provider such as OpenAI or Google, ensuring a more targeted and customizable approach to deploying deep learning solutions in your operations.
- Analiza nastrojów za pomocą funkcji PubNub i HuggingFace
- Sentiment-Analyse mit PubNub-Funktionen und HuggingFace
- Analyse des sentiments avec les fonctions PubNub et HuggingFace
What are some alternatives?
ChatGPT - 🔮 ChatGPT Desktop Application (Mac, Windows and Linux)
openai - OpenAI .NET sdk - Azure OpenAI, ChatGPT, Whisper, and DALL-E
gpt-4chan-model
generative-ai-for-beginners - 18 Lessons, Get Started Building with Generative AI 🔗 https://microsoft.github.io/generative-ai-for-beginners/
openai-cookbook - Examples and guides for using the OpenAI API
speak-gpt - Your personal voice assistant based on OpenAI ChatGPT.
ai-cli - Get answers for CLI commands from ChatGPT right from your terminal
OpenAI.Net - OpenAI library for .NET
KoboldAI-Client
NCalc2 - expression evaluator for .NET with built-in compiler
civitai - A repository of models, textual inversions, and more
SlackAI - Slack LLM app integration