GithubHelp home page GithubHelp logo

Comments (6)

codingl2k1 avatar codingl2k1 commented on July 29, 2024

Could you try the latest master? This error is weird, It raises when the chunk_text is a dict and the last_chunk_text_length is a slice. But, from the latest source code, the last_chunk_text_length can't be a slice.

>>> d = {}
>>> d[slice(1,2):]
Traceback (most recent call last):
    coro = func()
           ^^^^^^
  File "<input>", line 1, in <module>
TypeError: unhashable type: 'slice'

from inference.

zmh2000829 avatar zmh2000829 commented on July 29, 2024

This error is weird,

已使用Xinference-0.12.3,报错相同,增加如下打印,请帮忙查看问题原因
image
image

from inference.

moyangjiayou avatar moyangjiayou commented on July 29, 2024

遇到同样的问题了~ 求解决

from inference.

codingl2k1 avatar codingl2k1 commented on July 29, 2024

这是用的 stream tool call?

from inference.

moyangjiayou avatar moyangjiayou commented on July 29, 2024

from inference.

codingl2k1 avatar codingl2k1 commented on July 29, 2024

他这个 stream tool call 会有问题,如果输出的 stream 比较慢,可能返回出现不完整的tool call dict。

from inference.

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.