Git Product home page Git Product logo

Comments (5)

johnlanni avatar johnlanni commented on September 12, 2024

开启 ai-proxy 插件了吗

from higress.

pepesi avatar pepesi commented on September 12, 2024

开启 ai-proxy 插件了吗

开了的,
image

from higress.

pepesi avatar pepesi commented on September 12, 2024

我发现它总是在识别最后一个chunk的时候出现问题,我在debug过程中,尝试过打印一些信息,在

func (ctx *CommonHttpCtx[PluginConfig]) OnHttpResponseBody(bodySize int, endOfStream bool) types.Action {
这儿传进来的bodySize都是0,但是我对上游调用一无所知

from higress.

johnlanni avatar johnlanni commented on September 12, 2024

cc @rinfx

from higress.

pepesi avatar pepesi commented on September 12, 2024

我知道为啥了,不是上游的问题,是ai-statistics 在获取lastChunk的时候有问题,明天我来提pr吧;
getLastChunk的函数默认是拿最后一个区段,实际上最后一个段可能不是带有usage的,这儿需要单独处理;

from higress.

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.