Giter Club home page Giter Club logo

Comments (3)

lidisi8520 avatar lidisi8520 commented on July 20, 2024

Describe the bug

image

如图,这个类是我使用[Function]注解自动生成的类。这个类中,会在定义的函数中使用Azure.AI.OpenAI,这样看似没有问题,但是如果在我本地项目中有一个Azure的命名空间,那么,在这个函数这里使用Azure.AI.OpenAI会优先使用我本身项目的命名空间,导致程序本身找不到这个依赖报错,如果我将Azure.AI.OpenAI放在顶部,使用Using Azure.AI.OpenAI的话,是不会出现这个报错。(这个是我在另外一个类中简单的测试过一次,没有深入测试)。在我看来这可能像是一个bug。不知道现阶段是不是有解决这个bug的方案。

Steps to reproduce

No response

Model Used

No response

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

No response

image
我在另外一个类中同样定义了这么一个函数,但是我将依赖引入放在顶部,就不会出现上面图中那个报错。但是那个类是[Function]注解自动生成的,没有办法去修改。想知道还有其他办法解决它吗。

from autogen.

LittleLittleCloud avatar LittleLittleCloud commented on July 20, 2024

@lidisi8520 Thanks, will add global keyword in generated code

from autogen.

LittleLittleCloud avatar LittleLittleCloud commented on July 20, 2024

@lidisi8520 The fix is checked in, you can refer to latest nightly build to consume the package

from autogen.

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.