Giter Club home page Giter Club logo

platform-docs-public's People

Contributors

adrienbrault avatar bam4d avatar bobsaintcool avatar charlescnorton avatar computabeast avatar eleonorea avatar erkanmalcokcom avatar fred3105 avatar fuegoio avatar gaspardbt avatar gbaptista avatar hrjn avatar kacperkluka avatar lerela avatar nicoalbanese avatar nicolas-schuhl avatar osanseviero avatar pandora-s-git avatar paulkinlan avatar rabah-khalek avatar ravi03071991 avatar senk avatar sophiamyang avatar sublimator avatar timothyckl avatar vimota avatar wilsonsilva avatar zainhaq-h2o avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platform-docs-public's Issues

Problem with Mistral AI as "drop in" replacement for Openai - extra parameters prevents Mistral completion

Trying to use Mistral API as a drop in replacement for Openai in a project at the user's discretion, and I get the following error:


2024-01-24 14:17:01,574 INFO: message='OpenAI API response' path=https://api.mistral.ai/v1/chat/completions processing_ms=None request_id=None response_code=422
2024-01-24 14:17:01,574 ERROR: LLM API Error: Invalid response object from API: '{"object":"error","message":"{\\"detail\\":[{\\"type\\":\\"extra_forbidden\\",\\"loc\\":[\\"body\\",\\"frequency_penalty\\"],\\"msg\\":\\"Extra inputs are not permitted\\",\\"input\\":0.0,\\"url\\":\\"https://errors.pydantic.dev/2.5/v/extra_forbidden\\"}]}","type":"internal_error_proxy","param":null,"code":"1000"}' (HTTP response code was 422)

Even if Mistral API does not use other parameters Openai allows, is there a way for it to ignore additional parameters? It would make it a lot easier for clients to offer Mistral API as an alternative to Openai without writing special code just for Mistral. Here, frequency penalty is a standard Openai API parameter: https://platform.openai.com/docs/api-reference/chat.

Thank you for the consideration. I was not sure which repo to put this issue under, but chose documentation since if this will not change it would be good to put a specific note that Mistral does not support any additional errors and will not complete requests with any additional parameters.

Add security schema to the Open API spec

Mistral uses the same bearer token security that OpenAI does. The OpenAI OpenAPI spec has it well defined (https://github.com/openai/openai-openapi/blob/master/openapi.yaml#L5021C1-L5025C23) on each API which mean any client library that's auto-generated knows how to manage security.

Our breadboard library currently can't work out consistently what the security spec is which means I can't offer a drop in replacement for OpenAI (which I would like to be able to do).

Happy to file a PR.

Putting `mistral-embed` on the MTEB Leaderboard

Hello!

I see that your documentation mentions that mistral-embed scores a 55.26 on the MTEB leaderboard. I'd love to help put this model on the MTEB Leaderboard as one of the External models. If you still have the results directory with the MTEB scores (i.e. a folder with a ton of json files like AmazonCounterfactualClassification.json, ArguAna.json, etc.), then I could include it into the MTEB leaderboard quite easily.
We do the same with OpenAI, Cohere & Voyage models, for example.

Feel free to reach out here, via [email protected] or via LinkedIn (@tomaarsen).

  • Tom Aarsen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.