Skip to content

Commit 089cfb8

Browse files
committed
Update Readme
1 parent 74b2f41 commit 089cfb8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ A Java library to use the OpenAI Api in the simplest possible way.
2727
- [Realtime Conversation Example](#realtime-conversation-example)
2828
- [Exception Handling](#-exception-handling)
2929
- [Support for Additional OpenAI Providers](#-support-for-additional-openai-providers)
30-
- [Mistral API](#mistral-api) **NEW**
30+
- [Deepseek API](#deepseek-api) **NEW**
31+
- [Mistral API](#mistral-api)
3132
- [Azure OpenAI](#azure-openai)
3233
- [Anyscale](#anyscale)
3334
- [Run Examples](#-run-examples)
@@ -967,6 +968,19 @@ This exception handling mechanism allows you to handle API errors and provide fe
967968
## ✴ Support for Additional OpenAI Providers
968969
Simple-OpenAI can be used with additional providers that are compatible with the OpenAI API. At this moment, there is support for the following additional providers:
969970

971+
### Deepseek API
972+
[Deepseek API](https://api-docs.deepseek.com/) is supported by Simple-OpenAI. We can use the class `SimpleOpenAIDeepseek` to start using this provider.
973+
```java
974+
var openai = SimpleOpenAIDeepseek.builder()
975+
.apiKey(System.getenv("DEEPSEEK_API_KEY"))
976+
//.baseUrl(customUrl) Optionally you could pass a custom baseUrl
977+
//.httpClient(customHttpClient) Optionally you could pass a custom HttpClient
978+
.build();
979+
```
980+
Currently we are supporting the following services:
981+
- `chatCompletionService` (text generation, streaming)
982+
- `modelService` (list)
983+
970984
### Mistral API
971985
[Mistral API](https://docs.mistral.ai/getting-started/quickstart/) is supported by Simple-OpenAI. We can use the class `SimpleOpenAIMistral` to start using this provider.
972986
```java
@@ -1079,6 +1093,7 @@ List of the main users of our library:
10791093
- [Woolly](https://github.com/da-z/woolly): A code generation IntelliJ plugin.
10801094
- [Vinopener](https://github.com/thevinopener/vinopener): A wine recommender app.
10811095
- [ScalerX.ai](https://scalerX.ai): A Telegram chatbot factory.
1096+
- [Katie Backend](https://github.com/wyona/katie-backend): A question-answering platform.
10821097
10831098
10841099
## ❤ Show Us Your Love

0 commit comments

Comments
 (0)