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

Only get_embedding once

Open scottleibrand opened this issue 1 year ago • 0 comments

https://github.com/openai/openai-cookbook/commit/fd181ec78fa57e14583e27915ccdad3a084296ae updated what was previously two different get_embedding() calls w/ different models to be two identical calls. Rather than doing the same API call twice in a row, we can now just set the second variable to be equal to the first one.

scottleibrand avatar Dec 23 '22 20:12 scottleibrand