You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constaxios=require("axios");asyncfunctionask(){constobjj={messages: {prompt: "Hello"},//[{" role":"user","content":"hello\n"},{"role":"assistant","content":"Hi there! How can I assist you today?"},{"role":"user","prompt":"who are you"}],model: "gpt-4"};try{constresponse=awaitaxios.post("http://127.0.0.1:3000/v1/chat/completions?site=better",{data: {prompt: "Hello",messages: {content: "Hello"},//[{" role":"user","content":"hello\n"},{"role":"assistant","content":"Hi there! How can I assist you today?"},{"role":"user","prompt":"who are you"}],model: "gpt-4"}},{body: {messages: {prompt: "Hello"},//[{" role":"user","content":"hello\n"},{"role":"assistant","content":"Hi there! How can I assist you today?"},{"role":"user","prompt":"who are you"}],model: "gpt-4"},headers: {"Content-Type": "application/json"}});console.log(response.data.choices[0]);}catch(error){console.error(error)console.error("Error making the request:",error.message);}}ask();
I trying this but server says need prompt in query
The text was updated successfully, but these errors were encountered:
I trying this but server says need prompt in query
The text was updated successfully, but these errors were encountered: