Comments (5)
@stuhlmueller @reppertj @CG80499 could one of you take a look?
from ice.
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.
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.
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.
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)
- Recipe trace page returns {"detail": "Not found"} HOT 5
- Tests don't run on fork PRs
- Example traces on the homepage not available HOT 6
- Issues with loading traces
- Potential bug in `getaddrinfo` on MacOS
- New release? HOT 4
- Fix security alerts
- ICE UI stops working HOT 4
- Specify tracing file format/API HOT 1
- ICE server not accessible through jupyter proxy
- Is there a JS version of this? HOT 2
- Error when running Primer: PydanticImportError HOT 1
- hello world program not running HOT 1
- Make it clear when a response is from cache
- Wondering whether this can be used with different models
- raise PydanticImportError( pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. HOT 3
- Unclear how to use tracing within applications HOT 2
- Pydantic version must be <2 and >=1.10.0 (Python 3.11 and ICE 0.5.0)
- Unable to parse PDFs, "Failed to resolve 'test.elicit.org'" HOT 1
- .
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ice.