Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shipinev authored Aug 9, 2024
1 parent 953e71a commit eb0c7ce
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,23 @@ For more detailed information about OpenAI Assistants API usage, please refer to

# Available endpoints

## Chat

Creates a model response for the given chat conversation.

### [Create chat completion](https://platform.openai.com/docs/api-reference/chat/create)

```swift
createChatCompletion(
from: CreateChatCompletionPayload(
model: model,
messages: [ChatCompletionMessage(role: .user, content: "Hello")]
)
)
```

#### Returns `ChatCompletion`

## Models

List and describe the various models available in the API. A list of models and their differences can be found on [platform.openai.com](https://platform.openai.com/docs/models).
Expand Down Expand Up @@ -364,7 +381,7 @@ To try the OpenAIAssistants examples:
- [x] Assistants
- [x] Run streaming
- [x] Chat
- [ ] Swift Concurrency support
- [x] Swift Concurrency support
- [ ] Audio
- [ ] Images
- [ ] Moderations
Expand Down

0 comments on commit eb0c7ce

Please sign in to comment.