Skip to content

Commit

Permalink
hotfix for langchain4j#23
Browse files Browse the repository at this point in the history
  • Loading branch information
deep-learning-dynamo committed Jul 14, 2023
1 parent c451a22 commit 88710c5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ public T build() {
private final ExecutorService executor = Executors.newCachedThreadPool();

@Override
public Object invoke(Object proxy, Method method, Object[] args) {
public Object invoke(Object proxy, Method method, Object[] args) throws Exception {

if (method.getDeclaringClass() == Object.class) {
return method.invoke(this, args);
}

validateParameters(method);

Expand Down

0 comments on commit 88710c5

Please sign in to comment.