Open abichinger opened 11 months ago
Personally I don't think the library should expose Axios at all, since it's an internal implementation detail.
For example, in another issue someone asked about how to take advantage of streaming responses from OpenAI. Best I can tell, Axios doesn't make that easy to do (or it might not provide the APIs to do so at all). I use this as a specific example, but my point is really that hooking up Axios or whatever language model provider API is easy enough because TypeChatLanguageModel
just needs a single function at the moment.
Still, I'll let others weigh in here.
@DanielRosenwasser thete are likely legit n/w level overrides desired, but middleware is likely the better way forward imo rather than anything axios/fetch/ky specific.
I agree with exposing the model the way it is with the single function 👍
I don't think TypeChat needs to provide proxy settings, as it can support proxy access through higher-level configurations, such as proxychains4.
Exporting
createAxiosLanguageModel
would solve the following problemsrelated: #73 #55 #34
/v1/chat/completions