Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .Rhistory
Empty file.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
dev-backups/
Binary file added 2025 Agent Builder.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ Before deploying your app, you need to verify the domain by adding it to the [Do

- [ChatKit JavaScript Library](http://openai.github.io/chatkit-js/)
- [Advanced Self-Hosting Examples](https://github.com/openai/openai-chatkit-advanced-samples)
- [Advanced Self-Hosting Examples](https://github.com/openai/openai-chatkit-advanced-samples)
13 changes: 10 additions & 3 deletions components/ChatKitPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,14 @@ export function ChatKitPanel({
[isWorkflowConfigured, setErrorState]
);

const chatkit = useChatKit({
const chatkitOptions = {
api: { getClientSecret },
// Explicit theme config
theme: {
colorScheme: theme,
...getThemeConfig(theme),
},
// Start screen config (greeting & prompts)
startScreen: {
greeting: GREETING,
prompts: STARTER_PROMPTS,
Expand Down Expand Up @@ -328,7 +330,12 @@ export function ChatKitPanel({
// Thus, your app code doesn't need to display errors on UI.
console.error("ChatKit error", error);
},
});
};

const chatkit = useChatKit(chatkitOptions);

// NOTE: UI-level interim-response suppression was removed to restore
// original ChatKit rendering behavior. Keep `lib/config.ts` changes only.

const activeError = errors.session ?? errors.integration;
const blockingError = errors.script ?? activeError;
Expand Down Expand Up @@ -415,4 +422,4 @@ function extractErrorDetail(
}

return fallback;
}
}
8 changes: 7 additions & 1 deletion lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ export const STARTER_PROMPTS: StartScreenPrompt[] = [

export const PLACEHOLDER_INPUT = "Ask anything...";

export const GREETING = "How can I help you today?";
export const GREETING = "Hi, I am Sean's Digital Avatar, how can I help you today?";

// When true, the UI will try to hide interim/streaming assistant partials
// (the "thinking" updates) and only show final assistant messages. This
// is best-effort: different ChatKit deployments render streaming updates
// differently, so behavior may vary. Toggle to `false` to disable.
export const HIDE_INTERIM_RESPONSES = true;

export const getThemeConfig = (theme: ColorScheme): ThemeOption => ({
color: {
Expand Down
134 changes: 67 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
"dependencies": {
"@openai/chatkit-react": ">=1.1.1 <2.0.0",
"next": "^15.5.4",
"react": "^19.2.0",
"react-dom": "^19.2.0"
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"optionalDependencies": {
"lightningcss-linux-x64-gnu": "1.30.1",
"@tailwindcss/oxide-linux-x64-gnu": "4.1.11"
"@tailwindcss/oxide-linux-x64-gnu": "4.1.11",
"lightningcss-linux-x64-gnu": "1.30.1"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"eslint": "^9",
"eslint-config-next": "15.5.4",
"tailwindcss": "^4",
"typescript": "^5"
}
}
}