-
Type:
Task
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
The Docs AI Provider will just have one model which will be created with OpenAICompatibleChatLanguageModel.This should require little additional configuration assuming the API is fully compatible with the OpenAI specifications.
The provider will then be consumed by the useChat hook using a custom chat transport which is the recommended approach to using it on the client side.
useChat will use the docsProviderTransport and provide the core state management for our chat UI, like below.