Giter Club home page Giter Club logo

Comments (6)

brynn-code avatar brynn-code commented on September 27, 2024

@tyler-suard-parker autogen itself will call openai several times to get the result/simulate the chat group turns, that's related to the inner logic of autogen which is not related to promptflow tracing.

from promptflow.

tyler-suard-parker avatar tyler-suard-parker commented on September 27, 2024

Thank you Brynn. How do I turn it off? I do not want tracing on those parts, I only want it on the parts that I specify.

from promptflow.

brynn-code avatar brynn-code commented on September 27, 2024

There is an internal workaround to achieve this, I'll leave this to our tracing expert @thy09 XD

from promptflow.

thy09 avatar thy09 commented on September 27, 2024

Hi @tyler-suard-parker I think you can call this internal function after start_trace to avoid openai_chat for workaround.

from promptflow.tracing._integrations._openai_injector import recover_openai_api

Note that this is an internal function, we do not expose a public function now.
Maybe we can have a public function for that or add an option in start_trace

from promptflow.

tyler-suard-parker avatar tyler-suard-parker commented on September 27, 2024

@thy09 That worked perfectly, thank you. You also might want to add it to the Promptflow Tracing documentation.

from promptflow.

thy09 avatar thy09 commented on September 27, 2024

@tyler-suard-parker This is an internal function, so we are not ready to expose it. We may need some discussion how to expose such APIs.

from promptflow.

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.