You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update docs
* ficx link
* update app.py for aoai
* update note on azure openai
* update to use chatlas
* simplify to use chatlas fully
* ad back chatlas args
* Apply suggestion from @mleary
* Bump version from 0.0.4 to 0.0.5 in manifest
Copy file name to clipboardExpand all lines: extensions/chat-with-content/README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ As a Posit Connect administrator, you need to configure the environment for this
21
21
22
22
1.**Publish the Extension**: Publish this application to Posit Connect.
23
23
24
-
2.**Configure Environment Variables**: In the "Vars" pane of the content settings, you need to set environment variables to configure the LLM provider. This extension uses the `chatlas` library, which supports various LLM providers like OpenAI, Google Gemini, and Anthropic on AWS Bedrock.
24
+
2.**Configure Environment Variables**: In the "Vars" pane of the content settings, you need to set environment variables to configure the LLM provider. This extension uses the `chatlas` library, which supports various LLM providers like OpenAI, Azure OpenAI, Google Gemini, Anthropic, and Anthropic on AWS Bedrock.
25
25
26
26
Set `CHATLAS_CHAT_PROVIDER_MODEL` to specify the provider and model in the format `provider/model`. You also need to provide the API key for the chosen service.
27
27
@@ -40,6 +40,14 @@ As a Posit Connect administrator, you need to configure the environment for this
-`ANTHROPIC_API_KEY`: `<your-anthropic-api-key>` (Set this as a secret)
42
42
43
+
**Example for Azure OpenAI:**
44
+
45
+
For Azure OpenAI, set `CHATLAS_CHAT_PROVIDER_MODEL` to `azure-openai` (with no model suffix) and pass the deployment-specific arguments via `CHATLAS_CHAT_ARGS`:
46
+
47
+
-`CHATLAS_CHAT_PROVIDER_MODEL`: `azure-openai`
48
+
-`AZURE_OPENAI_API_KEY`: `<your-azure-openai-api-key>` (Set this as a secret)
49
+
-`CHATLAS_CHAT_ARGS`: `{"deployment_id": "gpt-4.1-mini", "endpoint": "https://{your-resource-name}.openai.azure.com", "api_version": "2025-03-01-preview"}` (see [Azure OpenAI API versions](https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation))
50
+
43
51
**Example for Anthropic on AWS Bedrock:**
44
52
45
53
The application uses the [botocore](https://botocore.amazonaws.com/v1/documentation/api/latest/reference/credentials.html) credential chain for AWS authentication. If the Connect server is running on an EC2 instance with an IAM role that grants access to Bedrock, credentials are automatically detected and no configuration is needed. In this case, the application uses the `us.anthropic.claude-sonnet-4-20250514-v1:0` model by default.
@@ -51,7 +59,7 @@ As a Posit Connect administrator, you need to configure the environment for this
-`AWS_SESSION_TOKEN`: `<your-session-token>` (Optional, for temporary credentials)
53
61
54
-
For more details on supported providers and their arguments, see the [Chatlas documentation](https://posit-dev.github.io/chatlas/reference/ChatAuto.html).
62
+
For more details on supported providers and their arguments, see the [chatlas documentation](https://posit-dev.github.io/chatlas/reference/ChatAuto.html).
55
63
56
64
3.**Enable Visitor API Key Integration**: This extension requires access to the Connect API on behalf of the visiting user to list their available content. In the "Access" pane of the content settings, add a "Connect Visitor API Key" integration.
"This app requires the <code>CHATLAS_CHAT_PROVIDER_MODEL</code> environment variable to be "
129
129
"set along with an LLM API Key in the content access panel. Please set them in your environment before running the app. "
130
-
'See the <a href="https://posit-dev.github.io/chatlas/reference/ChatAuto.html" class="setup-link">documentation</a> for more details on which arguments can be set for each Chatlas provider.'
130
+
'See the <a href="https://posit-dev.github.io/chatlas/reference/ChatAuto.html" class="setup-link" target="_blank" rel="noopener">documentation</a> for more details on which arguments can be set for each Chatlas provider.'
0 commit comments