Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log spam about cost estimation #973

Open
kdubb opened this issue Oct 3, 2024 · 14 comments
Open

Log spam about cost estimation #973

kdubb opened this issue Oct 3, 2024 · 14 comments

Comments

@kdubb
Copy link

kdubb commented Oct 3, 2024

We are getting these log messages (seemingly spam). Is our extension configured wrong?

2024-10-03 13:07:15,124 WARN  [io.qua.arc.pro.BeanArchives] (build-29) Failed to index io.quarkiverse.langchain4j.cost.CostEstimator$CostContext: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: DEV@480d3575
2024-10-03 13:07:15,124 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$CostContext - unable to validate the parameter type's visibility for method estimate declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicE3BigCostEstimator
2024-10-03 13:07:15,124 WARN  [io.qua.arc.pro.BeanArchives] (build-29) Failed to index io.quarkiverse.langchain4j.cost.CostEstimator$SupportsContext: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: DEV@480d3575
2024-10-03 13:07:15,124 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$SupportsContext - unable to validate the parameter type's visibility for method supports declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicE3BigCostEstimator
2024-10-03 13:07:15,128 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$CostContext - unable to validate the parameter type's visibility for method estimate declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicO1PreviewCostEstimator
2024-10-03 13:07:15,128 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$SupportsContext - unable to validate the parameter type's visibility for method supports declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicO1PreviewCostEstimator
2024-10-03 13:07:15,133 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$CostContext - unable to validate the parameter type's visibility for method estimate declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicE3SmallCostEstimator
2024-10-03 13:07:15,133 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$SupportsContext - unable to validate the parameter type's visibility for method supports declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicE3SmallCostEstimator
2024-10-03 13:07:15,146 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$CostContext - unable to validate the parameter type's visibility for method estimate declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicGpt4oCostEstimator
2024-10-03 13:07:15,146 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$SupportsContext - unable to validate the parameter type's visibility for method supports declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicGpt4oCostEstimator
2024-10-03 13:07:15,148 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$CostContext - unable to validate the parameter type's visibility for method estimate declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicO1MiniCostEstimator
2024-10-03 13:07:15,148 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$SupportsContext - unable to validate the parameter type's visibility for method supports declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicO1MiniCostEstimator
2024-10-03 13:07:15,150 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$CostContext - unable to validate the parameter type's visibility for method estimate declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicGpt4oMiniCostEstimator
2024-10-03 13:07:15,150 WARN  [io.qua.arc.pro.Methods] (build-29) Parameter type info not available: io.quarkiverse.langchain4j.cost.CostEstimator$SupportsContext - unable to validate the parameter type's visibility for method supports declared on io.quarkiverse.langchain4j.openai.runtime.cost.BasicGpt4oMiniCostEstimator
@geoand
Copy link
Collaborator

geoand commented Oct 4, 2024

Ouch...

I'll have a look

@geoand
Copy link
Collaborator

geoand commented Oct 4, 2024

How can reproduce this? I am seeing this issue

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

@gsmet All we did was add langchain to a basic project

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

We get these as well...

2024-10-10 08:00:15,319 WARN  [io.qua.arc.ComponentsProvider] (Quarkus Main Thread) Unable to load removed bean type [io.quarkiverse.langchain4j.openai.runtime.cost.BasicGpt4oMiniCostEstimator]: java.lang.NoClassDefFoundError: io/quarkiverse/langchain4j/cost/CostEstimator
2024-10-10 08:00:15,321 WARN  [io.qua.arc.ComponentsProvider] (Quarkus Main Thread) Unable to load removed bean type [io.quarkiverse.langchain4j.openai.runtime.cost.BasicGpt4oCostEstimator]: java.lang.NoClassDefFoundError: io/quarkiverse/langchain4j/cost/CostEstimator
2024-10-10 08:00:15,322 WARN  [io.qua.arc.ComponentsProvider] (Quarkus Main Thread) Unable to load removed bean type [io.quarkiverse.langchain4j.openai.runtime.cost.BasicO1MiniCostEstimator]: java.lang.NoClassDefFoundError: io/quarkiverse/langchain4j/cost/CostEstimator
2024-10-10 08:00:15,324 WARN  [io.qua.arc.ComponentsProvider] (Quarkus Main Thread) Unable to load removed bean type [io.quarkiverse.langchain4j.openai.runtime.cost.BasicE3SmallCostEstimator]: java.lang.NoClassDefFoundError: io/quarkiverse/langchain4j/cost/CostEstimator
2024-10-10 08:00:15,325 WARN  [io.qua.arc.ComponentsProvider] (Quarkus Main Thread) Unable to load removed bean type [io.quarkiverse.langchain4j.openai.runtime.cost.BasicE3BigCostEstimator]: java.lang.NoClassDefFoundError: io/quarkiverse/langchain4j/cost/CostEstimator
2024-10-10 08:00:15,327 WARN  [io.qua.arc.ComponentsProvider] (Quarkus Main Thread) Unable to load removed bean type [io.quarkiverse.langchain4j.openai.runtime.cost.BasicO1PreviewCostEstimator]: java.lang.NoClassDefFoundError: io/quarkiverse/langchain4j/cost/CostEstimator

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

After the initial warnings

@geoand
Copy link
Collaborator

geoand commented Oct 10, 2024

Are you mixing versions perhaps?

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

Nope. We only added the -openai dependency (like the README), and I can't see the referenced classes in in IntelliJ.

Maybe I need a based package.

@geoand
Copy link
Collaborator

geoand commented Oct 10, 2024

Weird. If you attach a sample then I can check next week

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

Yeah I cannot see io.quarkiverse.langchain4j.cost.CostEstimator

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

Well you were correct in some form, adding just -openai yields these resolved dep versions...
Screenshot 2024-10-10 at 8 17 00 AM

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

We were using the universe BOM, (I just switched it to this, not sure why).. but switching back to the platform BOM updated them so these versions match.

@kdubb
Copy link
Author

kdubb commented Oct 10, 2024

I'm guessing, the universe BOM has langchain-core and not -openai in it

@geoand
Copy link
Collaborator

geoand commented Oct 13, 2024

Hm... I don't see why the universe BOM would contain either

@kdubb
Copy link
Author

kdubb commented Oct 13, 2024

Not sure what the issue is, but if I add the universe BOM, the dependency list shown is resolved by Gradle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants