Code Monkey home page Code Monkey logo

Comments (5)

lslunis avatar lslunis commented on July 23, 2024

@stuhlmueller @reppertj @CG80499 could one of you take a look?

from ice.

reppertj avatar reppertj commented on July 23, 2024

I suspect the local diskcache is preventing subsequent calls from actually taking place. The cache_id parameter exists to break this cache; if you, e.g., increment this cache_id on each call from the agent (e.g. using itertools.count), you should get randomness. Alternatively you can remove this cache decorator.

from ice.

Orowa avatar Orowa commented on July 23, 2024

I mean that does work and is straightforward to implement the iterator, though I might argue sampling completions is a primitive enough action that this behaviour might be more easily accessible; YMMV

from ice.

reppertj avatar reppertj commented on July 23, 2024

There are some awkward tradeoffs here re: reproducibility/cost savings to be sure (since the OpenAI API doesn't allow you to parameterize pseudo-randomness in sampling). Depending on the use case, by the way, you could also use the n parameter to get multiple samples through a single call.

from ice.

Orowa avatar Orowa commented on July 23, 2024

It sounds like this is just working exactly as intended, but there may be some revisions down the line on functionality, so happy to close it

from ice.

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.