PaLM API Server

Post your data to `/chat` to get a chat response from PaLM.

Uses bison chat model


fetch('/chat', {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json',
    },
    body: JSON.stringify({
        "message": "Hello, I am a message"
    }),
})
.then(response => response.json())
.then(data => {
    console.log('Success:', data);
})
.catch((error) => {
    console.error('Error:', error);
});
                  
Made with ❤️ Hemanth HM