-
Is there any documentation or template for the API I can use for the chat mod? |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 5 replies
-
Run the program in Chat mode and click on the API button at the bottom of the page. It'll tell you how the parameters differ. |
Beta Was this translation helpful? Give feedback.
-
Hmm, I'm not getting things to work though. I have been trying to reverse-engineer the WebSocket API to actually generate new text, but so far I'm not getting any of the actual data. |
Beta Was this translation helpful? Give feedback.
-
API in chat mode is not really supported at the moment. The API examples only work without This issue is related to this: #221 |
Beta Was this translation helpful? Give feedback.
-
Has there been any changes to this or is it still unsupported? Has anyone figured out any good way around it? I'd really like to use API with chat mode and characters |
Beta Was this translation helpful? Give feedback.
-
I think one of the big design improvements that's needed to text-gen-webui is decoupling the basic user interface format selection from the fundamental function of the program. Which is to say, |
Beta Was this translation helpful? Give feedback.
-
I also wish there was a way to use the API with chat mode, I have a voice recognition and speech synthesis that I want use that way. |
Beta Was this translation helpful? Give feedback.
-
Hopefully this functionality will be implemented in time. Seems like the API can work with stream, so it would be interesting to see it function with --chat or some other implementation. |
Beta Was this translation helpful? Give feedback.
-
I can't get the API to work at all, even with the bogstandard JS example. I have a feeling it's just broken, full stop. The json decoder seems to have problems. |
Beta Was this translation helpful? Give feedback.
-
Where did you find a JS example? const response = await fetch(
apiUrl + 'run/textgen',
{
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
data: [
[prompt, params]
]
})
}
); The server responds with: And raises the error:
(Running both the Python server and JS client on Windows 11) |
Beta Was this translation helpful? Give feedback.
-
any update on the api and chat mode? |
Beta Was this translation helpful? Give feedback.
-
No unfortunately I don't think it is possible to stream the API into the chat mode |
Beta Was this translation helpful? Give feedback.
-
hello Whether the API interface supports concurrent requests? |
Beta Was this translation helpful? Give feedback.
Run the program in Chat mode and click on the API button at the bottom of the page. It'll tell you how the parameters differ.