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

Examples and guides for using the OpenAI API

Results 581 openai-cookbook issues
Sort by recently updated
recently updated
newest added
trafficstars

Is there any plan to enable the deployment of a model locally to compute embeddings on tokenized text? I'm currently using "text-embedding-ada-002" via the API and it's fine, but I'm...

Worth one additional review to ensure main notebook runs end-to-end

I find it on help.openai.com. but it seems to be incomplete. quite wierd. The main way to keep the conversation focused on a topic is the system message. You can...

I don't see where it says which encoding to use with gpt-3.5-turbo, can you add that explicitly both on the tiktoken and the turbo pages?

> 是的,会的。用作`cl100k_base`编码。 > > 如果您用于`tiktoken`计算 ChatGPT API 调用的令牌,现在您可以将每条消息的内容和名称字段的长度加 4。 Is there an example? What I am using here is wrong ``` import tiktoken def num_tokens_from_string(string: str, encoding_name: str) -> int:...

Hi, [this](https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb) is a wonderful notebook and a very interesting demonstration of how to leverage your product. Thank you for sharing! A potential issue if one wanted to deploy the...

I receive the same error as issue #158 (https://github.com/openai/openai-cookbook/issues/158). However, I did so with a fresh API Key, and on the first attempt after waiting a day. So, it seems...

Documentation for https://github.com/openai/openai-cookbook/issues/157 - adds similarity score threshold for ensuring enough relevant context is in the embeddings database before requesting a completion. - adds an example cell where the similarity...

I keep getting Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client After uploading a file I tried both local and on vercel