Issue with Retaining Context Using threadId in OpenAI API (C#)

Issue:
Despite passing the stored threadId for subsequent API calls, the assistant does not retain context or continue the conversation in the same thread.

Query:

  • What could be causing this issue where the same threadId doesn’t work for subsequent messages?
  • Are there specific steps or examples in C# to ensure the correct usage of threadId for maintaining context in OpenAI API?

Thank you for any insights or guidance!