openai
openai copied to clipboard
OpenAI .NET sdk - Azure OpenAI, ChatGPT, Whisper, and DALL-E
**Describe the bug** TokenizerGpt3.Encode incorrect **Your code piece** ``` text = """ Many words map to one token, but some don't: indivisible. Unicode characters like emojis may be split into...
The implementations of IOpenAiEndpointProvider incorrectly created the incorrect URI which causes the GetFromJsonAsync to not work (as it gets list of files and not a single file result).
It's pretty simple, it just returns the content without any structure, so treat the response like a string.
Things that were added/changed. * Add UnitTest Project for net6.0 and net48 * Add missing packages for netstandard2.0 * Change interface methods to extension * Change `PostAsStreamAsync` to async
+ RunService: added RunStepList() and RunStep() + MessageService: added MessageRetrieve()
**Is your feature request related to a problem? Please describe.** I need to calculate the number of tokens, but TokenizerGpt3 has errors in calculations for models of GPT-3.5 and above....
The project is considering an upgrade to .NET 8.0. This new version introduces several features that can significantly enhance our application's performance. Key Feature: SearchValues One of the notable features...
When making a function definition using FunctionCallingHelper if the function has an array for a parameter it just errors, the code for the other method of making function definitions seems...
**Is your feature request related to a problem? Please describe.** The default way to set httpClient header is openai-style `Authorization: Bearer ...` [now](https://github.com/betalgo/openai/blob/012af713fd880cfef17e42603289222f7075371f/OpenAI.SDK/Managers/OpenAIService.cs#L38C26-L38C38). But comparing to official python-openai library the...
Here is description of the feature from OpenAI - https://cookbook.openai.com/examples/using_logprobs Basically it requires adding two additional parameters into ***ChatCompletionCreateRequest*** ``` logprobs: Whether to return log probabilities of the output tokens...