OpenAI
OpenAI copied to clipboard
Swift community driven package for OpenAI public API
Can't get openai's determination of prompt tokens when using chat streaming. Can get the response tokens by just counting them as they come in. Some equivalent of the completions "usage"...
I've been playing with it quite a bit the last several days and I'm *really* missing a Swift library for it; so if no one else has an implementation in...
**Describe the bug** When using a JSON function, a JSON Decoding error is sometimes triggered. The error happens because of unescaped double-quotes occurring inside a JSON string value. **To Reproduce**...
**Describe the bug** On the chat demo, switch message.role is not working. **To Reproduce** Steps to reproduce the behavior: 1- Change the function background color for debug purpose var body:...
**Is your feature request related to a problem? Please describe.** this API expects to return multiple options **Describe the solution you'd like** .. **Describe alternatives you've considered** ... **Additional context**...
**Is your feature request related to a problem? Please describe.** Would be great to be able to fetch function arguments on the view. **Describe the solution you'd like** When defined:...
## What This pull request adds the ability to specify custom HTTP headers when integrating with OpenAI via proxy APIs such as Helicone. It also refactors OpenAi's performRequest() by encapsulating...
Often receiving partial chunks of ChatResult from an OpenAI streaming session, which causes a DecodingError inside this package. Example of data received by StreamingSession.urlSession: data: {"id":"chatcmpl-7oBwbf0NG9vi74Z4mt3XasGhhdAVl","object":"chat.completion.chunk","created":1692196669,"model":"gpt-3.5-turbo-0613","choices":[{"index":0,"delta":{"function_call":{"arguments":" che"}},"finish_reason":null}]} data: {"id":"chatcmpl-7oBwbf0NG9vi74Z4mt3XasGhhdAVl","object":"chat.completion.chunk","created":1692196669,"model":"gpt-3.5-turbo-0613","choices":[{"index":0,"delta":{"function_call":{"arguments":"et"}},"finish_reason":null}]} data:...
**Is your feature request related to a problem? Please describe.** I would like to integrate with OpenAI via the Helicone proxy, but to do so, I need to be able...
**Is your feature request related to a problem? Please describe.** Recently I have came over a problem, where my program stopped working getting an error message: ``` keyNotFound(CodingKeys(stringValue: "id", intValue:...