Skip to content

Commit

Permalink
chore: add x-source to request headers (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrderyk authored Mar 5, 2024
1 parent cebf270 commit 7eac352
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const generateCodeSnippet = (
const DEFAULT_CORPUS_ID = "1";
const DEFAULT_CUSTOMER_ID = "1366999410";
const DEFAULT_API_KEY = "zqt_UXrBcnI2UXINZkrv4g1tQPhzj02vfdtqYJIDiA";
const DEFAULT_PLACEHOLDER = 'Try searching for "vectara" or "grounded generation"';
const DEFAULT_PLACEHOLDER = 'Try searching for "vectara" or "RAG"';

const App = () => {
const [isConfigurationDrawerOpen, setIsConfigurationDrawerOpen] = useState(false);
Expand Down
1 change: 1 addition & 0 deletions src/useSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const useSearch = (
headersInstance.append("customer-id", customerId);
headersInstance.append("x-api-key", apiKey);
headersInstance.append("content-type", "application/json");
headersInstance.append("x-source", "react-search");

return headersInstance;
}, [customerId, apiKey]);
Expand Down

0 comments on commit 7eac352

Please sign in to comment.