Skip to content

Conversation

dancer
Copy link
Contributor

@dancer dancer commented Sep 1, 2025

summary

integrated ai gateway for model routing, enhanced ui components with ai elements, and improved user experience across the chat interface

changes

ai gateway integration

  • updated providers.ts to use ai gateway instead of direct xai provider calls
  • configured gateway authentication with ai_gateway_api_key
  • all xai models now route through gateway for management

ui improvements

  • moved model selector from header to input area for better accessibility
  • implemented ai elements components for model selection (promptinputmodelselect)
  • improved focus ring handling on dropdown components
  • optimized artifact panel animation timings for smoother transitions

messaging enhancements

  • aligned sparkles icons properly with message text baseline
  • fixed thinking message and regular message consistency
  • prevented model selector from triggering page refreshes
  • improved chat deletion flow to redirect properly after success

bug fixes

  • fixed chat api error handling to return proper responses in all cases
  • resolved model selector focus ring persistence issues
  • eliminated 2-second resize glitch during artifact generation
  • updated model names to be more user-friendly (grok vision, grok reasoning)

Copy link

vercel bot commented Sep 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ai-chatbot Ready Ready Preview Comment Sep 1, 2025 9:50am

@dancer dancer merged commit dff2191 into main Sep 1, 2025
4 of 5 checks passed
@dancer dancer deleted the josh/gateway branch September 1, 2025 10:07
run: pnpm install
- name: Run lint
run: pnpm lint
1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change broke the lint action by adding a stray 1 to the end of the file. Now it doesn't run anymore.

felixbridell pushed a commit to mashplan/chat that referenced this pull request Sep 5, 2025
# Conflicts:
#	app/(chat)/api/chat/route.ts
#	lib/ai/providers.ts
#	package.json
#	pnpm-lock.yaml
tobiasbueschel pushed a commit to tobiasbueschel/ai-chatbot that referenced this pull request Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants