Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

doc: Add OpenAI compatible API LLM provier

Clémence Lesné40b54bb21bdc
diff --git a/README.md b/README.md
index 237dabe..7ed2e7e 100644
--- a/README.md
+++ b/README.md
@@ -497,6 +497,41 @@ class ClaimModel(BaseModel):
[...]
```
+### Use an OpenAI compatible model for the LLM
+
+To use a model compatible with the OpenAI completion API, you need to create an account and get the following information:
+
+- API key
+- Context window size
+- Endpoint URL
+- Model name
+- Streaming capability
+
+Then, add the following in the `config.yaml` file:
+
+```yaml
+# config.yaml
+[...]
+
+llm:
+ backup:
+ mode: openai
+ openai:
+ api_key: xxx
+ context: 16385
+ endpoint: https://api.openai.com
+ model: gpt-35-turbo
+ streaming: true
+ primary:
+ mode: openai
+ openai:
+ api_key: xxx
+ context: 128000
+ endpoint: https://api.openai.com
+ model: gpt-4
+ streaming: true
+```
+
### Use Twilio for SMS
To use Twilio for SMS, you need to create an account and get the following information: