dylanshine / openai-kit

A community Swift package used to interact with the OpenAI API
https://platform.openai.com/docs/api-reference
MIT License
703 stars 109 forks source link

Make ChatStream properties public #39

Closed ronaldmannak closed 1 year ago

ronaldmannak commented 1 year ago

properties of Choice and Message should be public.

@dylanshine: I encountered one weird bug. The first call to stream always fails. Chats.stream(model:, ...) returns an empty stream and the for try await loop to print the delta is skipped over. Subsequent calls succeed. Can you confirm you see the same?