-
Notifications
You must be signed in to change notification settings - Fork 390
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
feat: export createAxiosLanguageModel #94
Comments
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 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: Support axios config #73 Add HTTP_PROXY variable and proxy process when access endpoints' api services #55 feat: add request config #34
/v1/chat/completions
The text was updated successfully, but these errors were encountered: