Skip to content

Commit 412d50f

Browse files
committed
review the error message
1 parent 58e63a9 commit 412d50f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/tdb-dashboard/src/pages/IndexingActionMonitor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ function ItemElement ({item}){
100100
let extraInfo = ""
101101
if(num === 0){
102102
extraInfo =<>
103-
<div>if you haven't done it already, Go to <NavLink to={`/${organization}/${dataProduct}/openai_configuration`} className={"mr-1"}>Open AI configuration </NavLink> page
104-
to add a graphql query and an handlebars template for every Document you would like to index</div></>
103+
<div>If not already configured, Go to <NavLink to={`/${organization}/${dataProduct}/openai_configuration`} className={"mr-1"}>Open AI configuration </NavLink> page
104+
and add a GraphQL query and a Handlebars template for each document you would like to index.</div></>
105105
}
106106

107107
return <><div>{message}</div>{extraInfo}</>

packages/tdb-dashboard/src/pages/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ export const getGqlQuery = (str,setError)=>{
2222
export function formatError(errorStr,organization,dataProduct){
2323
if(typeof errorStr !=="string" ) return ''
2424
if(errorStr.search('Incorrect API key')> -1){
25-
return <>Incorrect API key Provided, You can find your API key at
25+
return <>Incorrect API key provided. Find your OpenAI API key at
2626
<a className="mr-1 ml-1 text-success" href="https://platform.openai.com/account/api-keys" target="_blank">
2727
https://platform.openai.com/account/api-keys </a></>
2828

2929
}else if (errorStr.search('missing field')> -1 || errorStr.search("input' is invalid.")> -1){
3030
return <>
31-
You can have an error in your graphql queries or handlebars templates.
31+
You have an error in your GraphQL query or Handlebars templates.
3232
<div>Go to <NavLink to={`/${organization}/${dataProduct}/openai_configuration`} className={"mr-1"}>Open AI configuration </NavLink> page
33-
to check your graphql queries and handlebars templates, load the query/template and use the 'Preview' button to see if there is any error</div></>
33+
to check your GraphQL queries and Handlebars templates. Load the query/template and use the 'Preview' button to check for errors.</div></>
3434
}
3535
return errorStr
3636
}

0 commit comments

Comments
 (0)