Skip to content

Commit

Permalink
fix deployment finally, podman is definitely poorly developed and bro…
Browse files Browse the repository at this point in the history
…ke continously
  • Loading branch information
vemonet committed Jan 16, 2025
1 parent 8f1444b commit f62cce9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions chat-with-context/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<link rel="icon" type="image/png" href="./sib-logo.png" />

<link href="./style.css" rel="stylesheet" />

<script type="module" src="../src/chat-with-context.tsx"></script>

<!-- <link href="https://unpkg.com/@sib-swiss/chat-with-context/dist/style.css" rel="stylesheet" />
Expand Down
2 changes: 1 addition & 1 deletion chat-with-context/demo/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import tailwindTypography from "@tailwindcss/typography";

export default {
darkMode: "selector",
content: ["./index.html"],
content: ["./index.html", "../src/*.{js,ts,jsx,tsx}"],
theme: {
extend: {
// Remove backticks from inline code
Expand Down
5 changes: 2 additions & 3 deletions chat-with-context/src/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export class ChatState {
// Stream a response from various LLM agent providers (OpenAI-like, LangGraph, LangServe)
export async function streamResponse(state: ChatState, question: string) {
state.appendMessage(question, "user");
console.log(state.apiUrl)
if (state.apiUrl.endsWith(":2024/") || state.apiUrl.endsWith(":8123/")) {
// Query LangGraph API
await streamLangGraphApi(state);
Expand Down Expand Up @@ -227,7 +226,7 @@ async function streamCustomLangGraph(state: ChatState) {
for (const line of combined.split("\n").filter(line => line.trim() !== "")) {
// if (line === "data: [DONE]") return;
// if (line.startsWith("data: ")) {
console.log(line)
// console.log(line)
try {
const json = JSON.parse(line);
processLangGraphChunk(state, json)
Expand Down Expand Up @@ -298,7 +297,7 @@ async function streamOpenAILikeApi(state: ChatState) {
for (const line of combined.split("\n").filter(line => line.trim() !== "")) {
if (line === "data: [DONE]") return;
if (line.startsWith("data: ")) {
console.log(line)
// console.log(line)
try {
const json = JSON.parse(line.substring(6));
if (json.retrieved_docs) {
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ fi

# Fix connectivities issues between api and vectordb... (become podman compose is completly broken)
# podman exec -it api bash
# podman inspect vectordb | grep IPAddress

0 comments on commit f62cce9

Please sign in to comment.