Skip to content

Commit 0875093

Browse files
committed
README cosmetics updated
1 parent 4020c41 commit 0875093

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This is a no-nonsense async Scala client for OpenAI API supporting all the avail
55

66
* **Models**: [listModels](https://platform.openai.com/docs/api-reference/models/list), and [retrieveModel](https://platform.openai.com/docs/api-reference/models/retrieve)
77
* **Completions**: [createCompletion](https://platform.openai.com/docs/api-reference/completions/create)
8-
* **Chat Completions**: [createChatCompletion](https://platform.openai.com/docs/api-reference/chat/create), and [createChatFunCompletion](https://platform.openai.com/docs/api-reference/chat/create) **(🔥 new)**
9-
* **Edits**: [createEdit](https://platform.openai.com/docs/api-reference/edits/create)
8+
* **Chat Completions**: [createChatCompletion](https://platform.openai.com/docs/api-reference/chat/create), and [createChatFunCompletion](https://platform.openai.com/docs/api-reference/chat/create)
9+
* **Edits**: [createEdit](https://platform.openai.com/docs/api-reference/edits/create) (deprecated)
1010
* **Images**: [createImage](https://platform.openai.com/docs/api-reference/images/create), [createImageEdit](https://platform.openai.com/docs/api-reference/images/create-edit), and [createImageVariation](https://platform.openai.com/docs/api-reference/images/create-variation)
1111
* **Embeddings**: [createEmbeddings](https://platform.openai.com/docs/api-reference/embeddings/create)
1212
* **Audio**: [createAudioTranscription](https://platform.openai.com/docs/api-reference/audio/create), [createAudioTranslation](https://platform.openai.com/docs/api-reference/audio/create)
@@ -19,7 +19,7 @@ Also, we aimed the lib to be self-contained with the fewest dependencies possibl
1919

2020
🔥 **New**: This lib supports also "OpenAI-API-compatible" providers such as [FastChat](https://github.com/lm-sys/FastChat) (umbrella for open-source LLMs - Vicuna, Alpaca, LLaMA, fastchat-t5-3b-v1.0, mpt-7b-chat, etc.), [Azure](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference), or any other similar service with a custom URL. Check the examples below for more details.
2121

22-
👉 Check out an article about the lib/client on [Medium](https://medium.com/@0xbnd/openai-scala-client-is-out-d7577de934ad).
22+
👉 For background information read an article about the lib/client on [Medium](https://medium.com/@0xbnd/openai-scala-client-is-out-d7577de934ad).
2323

2424
Try out also our [Scala client for Pinecone vector database](https://github.com/cequence-io/pinecone-scala), or use both clients together! [This demo project](https://github.com/cequence-io/pinecone-openai-scala-demo) shows how to generate and store OpenAI embeddings (with `text-embedding-ada-002` model) into Pinecone and query them afterward. The OpenAI + Pinecone combo is commonly used for autonomous AI agents, such as [babyAGI](https://github.com/yoheinakajima/babyagi) and [AutoGPT](https://github.com/Significant-Gravitas/Auto-GPT).
2525

@@ -85,35 +85,35 @@ Then you can obtain a service in one of the following ways.
8585
)
8686
```
8787

88-
- Minimal `OpenAICoreService` supporting `listModels`, `createCompletion`, `createChatCompletion`, and `createEmbeddings` calls - e.g. [FastChat](https://github.com/lm-sys/FastChat) service running on the port 8000 (🔥 new)
88+
- Minimal `OpenAICoreService` supporting `listModels`, `createCompletion`, `createChatCompletion`, and `createEmbeddings` calls - e.g. [FastChat](https://github.com/lm-sys/FastChat) service running on the port 8000
8989

9090
```scala
9191
val service = OpenAICoreServiceFactory("http://localhost:8000/v1/")
9292
```
9393

94-
- For Azure with API Key (🔥 new)
94+
- For Azure with API Key
9595

9696
```scala
9797
val service = OpenAIServiceFactory.forAzureWithApiKey(
9898
resourceName = "your-resource-name",
99-
deploymentId = "your-deployment-id",
100-
apiVersion = "2023-05-15", // example
99+
deploymentId = "your-deployment-id", // usually model name such as "gpt-35-turbo"
100+
apiVersion = "2023-05-15", // newest version
101101
apiKey = "your_api_key"
102102
)
103103
```
104104

105-
- For Azure with Access Token (🔥 new)
105+
- For Azure with Access Token
106106

107107
```scala
108108
val service = OpenAIServiceFactory.forAzureWithAccessToken(
109109
resourceName = "your-resource-name",
110-
deploymentId = "your-deployment-id",
111-
apiVersion = "2023-05-15", // example
110+
deploymentId = "your-deployment-id", // usually model name such as "gpt-35-turbo"
111+
apiVersion = "2023-05-15", // newest version
112112
accessToken = "your_access_token"
113113
)
114114
```
115115

116-
**✔️ Important**: If you want streaming support use `OpenAIServiceStreamedFactory` from `openai-scala-client-stream` lib instead of `OpenAIServiceFactory` (in the three examples above). Three additional functions - `createCompletionStreamed`, `createChatCompletionStreamed`, and `listFineTuneEventsStreamed` provided by [OpenAIServiceStreamedExtra](./openai-client-stream/src/main/scala/io/cequence/openaiscala/service/OpenAIServiceStreamedExtra.scala) will be then available.
116+
**✔️ Important**: If you want streaming support use `OpenAIServiceStreamedFactory` from `openai-scala-client-stream` lib instead of `OpenAIServiceFactory` (in the three examples above). Three additional functions - `createCompletionStreamed`, `createChatCompletionStreamed`, and `listFineTuneEventsStreamed` (deprecated) provided by [OpenAIServiceStreamedExtra](./openai-client-stream/src/main/scala/io/cequence/openaiscala/service/OpenAIServiceStreamedExtra.scala) will be then available.
117117

118118
- Via dependency injection (requires `openai-scala-guice` lib)
119119

0 commit comments

Comments
 (0)