Skip to content

server : detect search query to start webchat #6554

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

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

Mardak
Copy link
Contributor

@Mardak Mardak commented Apr 8, 2024

This allows for starting a chat when loading the web ui with http://localhost:8080/?q=prompt and allows for reloading the page to generate again with the same initial prompt. This is similar to https://chat.openai.com/?q=prompt to start a chat

@EZForever in #6325 added document.baseURI to set api_url to something like "http://proxy/llama" to fetch http://proxy/llama/completion so this should still result in fetching /llama/completion instead of http://proxy/llama/?q=prompt/completion without the change here to use location.pathname instead.

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

Successfully merging this pull request may close these issues.

2 participants