diff --git a/chat-with-context/README.md b/chat-with-context/README.md
index c75bcfe..dbab841 100644
--- a/chat-with-context/README.md
+++ b/chat-with-context/README.md
@@ -31,8 +31,8 @@ A web component to easily deploy an interface for a chat with context. It is the
```html
@@ -64,8 +64,8 @@ Create a `index.html` file with:
diff --git a/chat-with-context/index.html b/chat-with-context/index.html
index 62a2f35..248054d 100644
--- a/chat-with-context/index.html
+++ b/chat-with-context/index.html
@@ -83,13 +83,13 @@
-
-
-
-
+
+
+
+
diff --git a/chat-with-context/package-lock.json b/chat-with-context/package-lock.json
index 8465ac4..0cce21d 100644
--- a/chat-with-context/package-lock.json
+++ b/chat-with-context/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@sib-swiss/chat-with-context",
- "version": "0.0.9",
+ "version": "0.0.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@sib-swiss/chat-with-context",
- "version": "0.0.9",
+ "version": "0.0.10",
"license": "MIT",
"dependencies": {
"@ai-sdk/openai": "^1.0.18",
diff --git a/chat-with-context/package.json b/chat-with-context/package.json
index 8fbefaf..a9960f1 100644
--- a/chat-with-context/package.json
+++ b/chat-with-context/package.json
@@ -1,6 +1,6 @@
{
"name": "@sib-swiss/chat-with-context",
- "version": "0.0.9",
+ "version": "0.0.10",
"description": "A web component to easily deploy a chat with context.",
"license": "MIT",
"author": {
diff --git a/chat-with-context/src/chat-with-context.tsx b/chat-with-context/src/chat-with-context.tsx
index 26798dc..af699d2 100644
--- a/chat-with-context/src/chat-with-context.tsx
+++ b/chat-with-context/src/chat-with-context.tsx
@@ -54,7 +54,8 @@ customElement("chat-with-context", {chatEndpoint: "", examples: "", apiKey: "",
state.scrollToInput = () => inputTextEl.scrollIntoView({behavior: "smooth"});
fixInputHeight();
- setFeedbackEndpoint(props.feedbackEndpoint.endsWith("/") ? props.feedbackEndpoint : props.feedbackEndpoint + "/");
+ setFeedbackEndpoint(props.feedbackEndpoint);
+ // setFeedbackEndpoint(props.feedbackEndpoint.endsWith("/") ? props.feedbackEndpoint : props.feedbackEndpoint + "/");
});
const highlightAll = () => {
diff --git a/chat-with-context/src/providers.ts b/chat-with-context/src/providers.ts
index ea9c736..6b93656 100644
--- a/chat-with-context/src/providers.ts
+++ b/chat-with-context/src/providers.ts
@@ -50,7 +50,8 @@ export class ChatState {
abortController: AbortController;
constructor({apiUrl, apiKey, model}: {apiUrl: string; apiKey: string; model: string}) {
- this.apiUrl = apiUrl.endsWith("/") ? apiUrl : apiUrl + "/";
+ // this.apiUrl = apiUrl.endsWith("/") ? apiUrl : apiUrl + "/";
+ this.apiUrl = apiUrl;
this.apiKey = apiKey;
this.model = model;
diff --git a/packages/expasy-agent/src/expasy_agent/api.py b/packages/expasy-agent/src/expasy_agent/api.py
index 1e67815..b17bf93 100644
--- a/packages/expasy-agent/src/expasy_agent/api.py
+++ b/packages/expasy-agent/src/expasy_agent/api.py
@@ -254,8 +254,8 @@ def chat_ui(request: Request) -> Any:
{
"request": request,
"api_key": settings.expasy_api_key,
- "chat_endpoint": "https://chat.expasy.org/chat/",
- "feedback_endpoint": "https://chat.expasy.org/feedback/",
+ "chat_endpoint": "https://chat.expasy.org/chat",
+ "feedback_endpoint": "https://chat.expasy.org/feedback",
"examples": ",".join([
"Which resources are available at the SIB?",
"How can I get the HGNC symbol for the protein P68871?",