Git Product home page Git Product logo

Comments (6)

qhhsy avatar qhhsy commented on June 10, 2024

+1

from one-api.

LeoQuote avatar LeoQuote commented on June 10, 2024

按 azure 的文档, 确实没有这个参数, 之前设计的 azure 和 openai 是完全兼容的, 现在可能 azure 那边慢了, 如果 azure 那边更新慢, oneapi 这边估计只能用 adaptor 做兼容了 https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#completions

from one-api.

VectorZhao avatar VectorZhao commented on June 10, 2024

+1

from one-api.

mengdahuang avatar mengdahuang commented on June 10, 2024

+1

from one-api.

bbb3n avatar bbb3n commented on June 10, 2024

OpenAI ,5.6 才支持这个参数
https://platform.openai.com/docs/changelog/may-6th-2024

Azure ,这种 非关键性 的参数(除了超高并发中转为了节省 CPU 计算资源外,没多少系统会在意)
没个个把月 甚至一直不支持 我觉得都是可以理解的

但是这种参数(获取重要数据,更改后会造成严重后果的),不要由 one-api 来做处理
OpenAI 支持这个参数,原样传过来就行。Azure 不支持,报错传过来就行。
如果要为了 Azure 而 伪造 这个参数,我觉得是不应该的。一旦伪造的念头出现,那无须多言。

from one-api.

LeoQuote avatar LeoQuote commented on June 10, 2024

伪造确实不是好的实现,我比较建议oneapi照着 azure的接口 spec 对传过来的请求进行改写,这样可以在请求时去掉一些azure 不支持的参数,oneapi会更健壮

from one-api.

Related Issues (20)

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.