Skip to content

Commit

Permalink
initialize hashmap
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Dec 8, 2023
1 parent f2e2e5b commit 4bddd4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
@ServicePath("/openai")
// TODO Your own service class
public class OpenAIService extends RESTService {
private static HashMap<String, Boolean> isActive = null;
private static HashMap<String, Boolean> isActive = new HashMap<String, Boolean>();

EncodingRegistry registry = Encodings.newDefaultEncodingRegistry();
Encoding encoding = registry.getEncoding(EncodingType.CL100K_BASE);
Expand Down

0 comments on commit 4bddd4b

Please sign in to comment.