Comments (13)
I reinstall the ChatFred workflow downloaded from GitHub using "cft" keywords, but the Chinese content also doesn't be showing completely. By the way, I using the 'cf' keywords, it work fine.
The English content is correct.
from chatfred.
Great, thanks for your attention to this matter.
from chatfred.
Yep, I will track this issue, and help fix it.
from chatfred.
How to set the maximum tokens for the InstructGPT and ChatGPT, respectively? Thanks.
It needs a bigger maximum tokens value for the InsructGPT model and keeps the ChatGPT model's value as the default.
I change the number of maximum tokens, it works fine. Thanks.
from chatfred.
Hey @llity
I just released a new version. There you adjust the Maximum tokens
for ChatGPT and InstructGPT separately.
from chatfred.
Hey @llity!
It looks like you are using quite an old version of the workflow. Could you check which one it is?
from chatfred.
I will investigate and come back to you.
from chatfred.
Please have a look at the screenshot I posted. I marked the response from the model. Unfortunately, I don't speak Chinese but it looks like the model is exactly returning what is shown.
from chatfred.
It's Chinese Unicode, but the workflow is not getting the total response result, and the content was broken. Is it need to be modified the value of "maximum tokens"?
Thanks.
from chatfred.
Hm 🤔, you can try changing the Maximum tokens
but the default value should be correct.
For the InstructGPT models to work as a chatbot, we must provide a specific response. That is why there is:
def prompt_from_query(query: str) -> str:
"""Creates a suitable prompt for the OpenAI InstructGPT API."""
return f"Q: {query}\nA:"
We add a Q:
in front of the query and a \nA:
at the end of it. This may makes problems with non-Latin languages. You could try modifying this in the text_completion.py
file.
from chatfred.
I try your suggestion, but it's not working. I think the InstuctGPT models don't return the answer completely, or the workflow breaks the answer when I type Chinese in it. And if the answer is Chinese should use ".decode('unicode-escape')" to convert the Unicode string.
cf model gets the correct answer.
from chatfred.
Thanks for the update. If you want you can make some changes and create a pull request if you want to contribute.
from chatfred.
Hey! Cool that you figured it out. Unfortunately, at the moment it is not possible to have two different Maximum values
. But feel free to work on it and open a PR.
from chatfred.
Related Issues (20)
- Azure OpenAI API support? HOT 1
- Ollama support
- Notifications "You exceeded your current quota, please check your plan and billing details." instead of proper responds. HOT 3
- Gallery version is outdated HOT 1
- Do you have any plan to support DALL-E 3? HOT 3
- Constant error message: hmm something is wrong with your request, try again later... HOT 14
- Instruct GPT Models Deprecated HOT 7
- Autocomplete for aliases HOT 1
- Add support for images using GPT4-vision
- support custom model
- No response, just large 💬 emoji HOT 8
- how to chat to the previous gpt reply? HOT 2
- Token overuse HOT 3
- Order when using the Universal action & combined prompts
- Use Chatfred with LocalAI server? HOT 3
- Cannot Set the history_length to 0 Despite Being Provided HOT 7
- ChatGPT Aliases Should Search for Keyword Within the Prompt, Instead of the Other Way Around HOT 1
- Ability to edit system prompt HOT 4
- Is anyone experiencing problems with inputs being cutoff? HOT 3
- Streaming the Reply to Save Time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatfred.