petercat-ai / petercat

A conversational Q&A agent configuration system, self-hosted deployment solutions, and a convenient all-in-one application SDK, allowing you to create intelligent Q&A bots for your GitHub repositories
https://petercat.ai
MIT License
595 stars 16 forks source link

fix: remove apiDomain var in assistant package #479

Closed sedationh closed 4 days ago

sedationh commented 6 days ago

close #478

vercel[bot] commented 6 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2024 3:35am
petercat-assistant[bot] commented 6 days ago

Walkthrough

This pull request removes the apiDomain variable from the UserController.ts file in the assistant package. The apiDomain was previously set using an environment variable NEXT_PUBLIC_API_DOMAIN. The function getUserInfo now requires apiDomain to be passed as a parameter instead of using the environment variable.

Changes

File Summary
assistant/src/services/UserController.ts Removed apiDomain variable and updated getUserInfo function to accept apiDomain as a parameter.
sedationh commented 6 days ago

@xingwanying 可能还需要 publish 一下