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

Feature Request: OpenAI API function support #52

Open
j-dominguez9 opened this issue Feb 9, 2024 · 3 comments
Open

Feature Request: OpenAI API function support #52

j-dominguez9 opened this issue Feb 9, 2024 · 3 comments

Comments

@j-dominguez9
Copy link

I first want to mention that I do not want to support OpenAI or want to enable them in any way. That is particularly why I want Mistral to succeed. That being said, their API function has become somewhat standard in a lot of libraries and projects. By changing the 'api_base' argument, you can point it at any url, given that they support that format and functionality. It would make things easier for people switching over codebases and also allow extra functionality, like generating using JSON mode or function calls with pydantic + instructor.

@jackmpcollins
Copy link

I tested compatibility just now to try out using the Mistral API with https://github.com/jackmpcollins/magentic and found the allowed options for tool_choice was the only difference. I've opened a new issue specific to that #78

@j-dominguez9 Are there any other specific differences you are aware of? It looks like JSON mode has been added but I haven't tested this.

@aharth
Copy link

aharth commented Oct 22, 2024

Does the Mistral Python client support custom httpx clients via the http_client constructor parameter?

Both Open AI and Anthropic client libraries seem to support that functionality...

@aharth
Copy link

aharth commented Oct 22, 2024

Ok, the parameter is named client.

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

3 participants