Skip to content

Commit

Permalink
qanary-component-ned-openai-gpt: active live check
Browse files Browse the repository at this point in the history
  • Loading branch information
anbo-de committed Jan 3, 2024
1 parent c2c59e7 commit 596b6b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public class GptBasedNamedEntityDisambiguation extends QanaryComponent {
private static final String FILENAME_SELECT_MAPPINGS_FROM_DBPEDIA = "/queries/select_mappings_from_DBpedia.rq";
private static final String FILENAME_INSERT_ONE_ANNOTATIONOFINSTANCE = "/queries/insert_one_AnnotationOfInstance.rq";

private static final String START = "start";
private static final String END = "end";
private static final String NAMEDENTITY = "named_entity";
private static final String WIKIPEDIAURL = "wikipedia_url";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public OpenAiApiService( //
LOGGER.error("The API token was empty: '{}'. Please set the configuration property 'openai.api.key'.",
this.token);
throw new MissingArgumentException("openai.api.key is not avaible.");
} else {
LOGGER.info("API key available: {}*****{}", token.substring(0, 5), token.substring(token.length() - 5));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ openai.api.timeout=30
# maximum number of token retrieved by the API
openai.api.maxToken=300
# live test of the Open AI API: flag
openai.api.live.test.active=false
openai.api.live.test.active=true
# live test of the Open AI API: question to be used
openai.api.live.test.question=Which state of the USA has the highest population density?

Expand Down

0 comments on commit 596b6b6

Please sign in to comment.