We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hugging Face on Windows. UI-TARS shows that it is thinking, but then doesn't proceed, but gives ERROR: 404 status code (no body) How do you fix this ?
The text was updated successfully, but these errors were encountered:
You can open your browser's console and execute the following code by pasting it there.
const apiKey = '<Token>'; // you token const apiUrl = '<END_POINT>/v1'; // Request parameter const requestBody = { model: "UI-TARS-7B-SFT", // set to the deploy model name messages: [ { role: "system", content: "You are a helpful assistant" }, { role: "user", content: "hello" } ], temperature: 0.7, max_tokens: 150 }; // Send request fetch(apiUrl, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` }, body: JSON.stringify(requestBody) }) .then(response => { if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } return response.json(); }) .then(data => { console.log('Complete response:', data); const reply = data.choices[0].message.content; console.log('Assistant reply:', reply); }) .catch(error => { console.error('Request failed:', error); });
Sorry, something went wrong.
No branches or pull requests
Hugging Face on Windows.
UI-TARS shows that it is thinking, but then doesn't proceed, but gives ERROR: 404 status code (no body)
How do you fix this ?
The text was updated successfully, but these errors were encountered: