Skip to content
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

Avoid timeout #238

Open
jorgesinval opened this issue Dec 19, 2024 · 0 comments
Open

Avoid timeout #238

jorgesinval opened this issue Dec 19, 2024 · 0 comments

Comments

@jorgesinval
Copy link

I'm using the chat_azure function, to connect to the Azure chatbot. The connection and message exchange works perfectly in R. However, I'm facing an issue when I try to integrate the chatbot responses into an R Markdown document that I render to PDF.

Issue

The Rmd rendering gets stuck at some chunks calling the chatbot. I suspect that this might be due to the chatbot waiting for a user response or some backoff timeout mechanism.

What I've tried

  1. Running the chunks independently: Each chunk works fine when executed separately in an R session.
  2. Use the chat_async() function: I couldn't make it work.

Question

How can I ensure the knitr process does not get stuck while waiting for the Azure chatbot response? Is there a way to handle or bypass the chatbot's waiting time during the rendering process? The chatbot calls can be independent, they do not need to be within the same conversation with the chatbot.

Any suggestions or workarounds would be greatly appreciated. Thank you!

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

No branches or pull requests

1 participant