Coder Social home page Coder Social logo

Comments (10)

ucasiggcas avatar ucasiggcas commented on August 25, 2024

have the same problem

from bedrock-access-gateway.

daixba avatar daixba commented on August 25, 2024

This is already supported. Make sure you have the following in your request.

    "stream": true,
    "stream_options": {"include_usage": true},

from bedrock-access-gateway.

ucasiggcas avatar ucasiggcas commented on August 25, 2024

这个响应是不是不太对啊,等了几秒,后面直接出来一大坨
@daixba

from bedrock-access-gateway.

daixba avatar daixba commented on August 25, 2024

参考: https://platform.openai.com/docs/api-reference/chat/create

from bedrock-access-gateway.

dftty avatar dftty commented on August 25, 2024

部署readme里的ALB + Fargate这个 @ucasiggcas

from bedrock-access-gateway.

ucasiggcas avatar ucasiggcas commented on August 25, 2024

@dftty 这个我早就部署了啊,不然curl也不通的,现在的问题是stream情况下,response响应很慢,具体是curl后等待长时间才有反应,然后data数据一大堆出来了。

from bedrock-access-gateway.

ucasiggcas avatar ucasiggcas commented on August 25, 2024

我直接将curl的东西放终端测试的,响应就是慢,不及gpt-4o

from bedrock-access-gateway.

dftty avatar dftty commented on August 25, 2024

readme里有两种部署方式ALB + Lambda和ALB + Fargate,第一个流式是等所有数据返回才一次性返回,第二个是正常流式

from bedrock-access-gateway.

ucasiggcas avatar ucasiggcas commented on August 25, 2024

感谢,我再建立一个堆栈试试 @dftty

from bedrock-access-gateway.

ucasiggcas avatar ucasiggcas commented on August 25, 2024

solved , thx
@dftty

from bedrock-access-gateway.

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.