openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

[PROBLEM]

Open man00ka opened this issue 1 year ago • 2 comments
trafficstars

[optional format]

Identify the file to be fixed utils?

Describe the problem I tried to replicate the reproducable-outputs-with-seed-parameter guide: https://cookbook.openai.com/examples/reproducible_outputs_with_the_seed_parameter.

When importing

import asyncio
from IPython.display import display, HTML

from utils.embeddings_utils import (
    get_embedding,
    distances_from_embeddings
)

I get this error: ModuleNotFoundError: No module named 'utils'

I Updated to openai=1.3.3 but still got the error.

I assume the utils library is something imported by openai?

Thanks for your help.

man00ka avatar Mar 01 '24 19:03 man00ka

Hi [adkiem] (https://github.com/adkiem) this guide reproducable-outputs-with-seed-parameter guide: is working properly utils module is already present in the example folder. All you need is to setup your .env file( for OPENAI_API_KEY ) and environment

here are some screenshot Screenshot 2024-03-18 at 11 26 32 AM

Screenshot 2024-03-18 at 11 26 18 AM

bhaskar0402 avatar Mar 18 '24 06:03 bhaskar0402

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar May 18 '24 01:05 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar May 28 '24 01:05 github-actions[bot]