Skip to content

Commit

Permalink
fix: update API endpoint placeholders in AiSetting component
Browse files Browse the repository at this point in the history
- Changed the placeholder for the embedding API endpoint from "https://api.openapi.com/v1/embeddings" to "https://api.openapi.com/v1/" for clarity.
- Updated the placeholder for the general API endpoint from "https://api.openapi.com" to "https://api.openapi.com/v1/" to reflect versioning.

These changes improve user guidance by providing more accurate placeholder text for API configuration inputs.
  • Loading branch information
blinko-space committed Jan 15, 2025
1 parent aa5a15c commit 7920499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/BlinkoSettings/AiSetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const AiSetting = observer(() => {
label={t('api-endpoint')}
variant="bordered"
className="w-full"
placeholder="https://api.openapi.com/v1/embeddings"
placeholder="https://api.openapi.com/v1/"
value={store.embeddingApiEndpoint}
onChange={e => {
store.embeddingApiEndpoint = e.target.value
Expand Down Expand Up @@ -448,7 +448,7 @@ export const AiSetting = observer(() => {
label={t('api-endpoint')}
variant="bordered"
className="w-full md:w-[300px]"
placeholder="https://api.openapi.com"
placeholder="https://api.openapi.com/v1/"
value={store.apiEndPoint}
onChange={e => { store.apiEndPoint = e.target.value }}
onBlur={e => {
Expand Down

0 comments on commit 7920499

Please sign in to comment.