Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to add payload when using text-gen-web-ui? #498

Open
HamsterDumplings opened this issue Apr 23, 2024 · 0 comments
Open

Question: How to add payload when using text-gen-web-ui? #498

HamsterDumplings opened this issue Apr 23, 2024 · 0 comments

Comments

@HamsterDumplings
Copy link

Hi, great project and enjoying it so far!

I'm currently using the text-gen-web-ui API. After setting the below environments I can get the crew to kick off successfully.

os.environ["OPENAI_API_BASE"]="http://localhost:5000/v1"
os.environ["OPENAI_MODEL_NAME"]="NA"
os.environ["OPENAI_API_KEY"]="NA"

Unfortunately I need to be passing the payload JSON into that API request to tweak the temperature as well as adding the stop tokens (llama 3 repeat issue). Currently the output is corrupted by the repeating llama issue because the stop tokens can't be passed into the API.

I understand it might be using langchain as a base? Never used it and at this point I have managed to successfully avoid it like the plague in building my applications so please excuse my ignorance.

@HamsterDumplings HamsterDumplings changed the title How to add payload when using text-gen-web-ui? Question: How to add payload when using text-gen-web-ui? Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant