-
from openai import OpenAI
from github import Github, InputFileContent
from dotenv import load_dotenv
import os
load_dotenv()
openai_key = os.getenv("openai_key")
github_token = os.getenv("gith…
-
## What do we need?
If you go to the [textbase/models.py](https://github.com/cofactoryai/textbase/blob/main/textbase/models.py), there exists classes for various models like `OpenAI (GPT3.5/4), Dal…
-
Instead of using a Discord bot to allow connection to the langchain chatbot, rewrite the code to use FastAPI to do so.
Checklist
- [X] Create `app/main.py` ✓ https://github.com/Haste171/langchain-…
-
Resolves #16
This issue is for QA purposes to demonstrate what the GPT plugin is capable of.
-
In my chatbot, I'm using the `useChat` hook to display streaming messages.
While this is how I want (stream) most of the time, I have a certain use-case of manipulating the openai response message …
-
The local demo cannot use the drawing feature.
```
# import sys
# import logging
# import os
# # 把当前文件所在文件夹的父文件夹路径加入到PYTHONPATH
# sys.path.append(os.path.dirname(os.path.dirname(os.path.a…
-
When using the relatively recent ["Functions"](https://platform.openai.com/docs/guides/gpt/function-calling) feature of the ChatGPT API, it seems like `tiktoken-rs` underestimates the total number of …
-
#### **Healthcare Capabilities in AI**
---
**1. AI Model Development**
- **Capabilities:**
- Crafting bespoke AI models tailored for healthcare applications.
- Leveraging dee…
-
Thank you for awesome package. I was able to add streamlit-feedback into chatbot app via `st.form`:
```
def handle_feedback():
st.write(st.session_state.fb_k)
st.toast("✔️ Feedback recei…
-
![WhatsApp Image 2024-05-21 at 19 26 33_4d19396b](https://github.com/samkamau81/AI4Education-Moringa/assets/63351043/2f197862-7289-4880-8e65-58895ebf3a80)
Using Django for our backend, come up …