konveyor / kai

Konveyor AI - static code analysis driven migration to new targets via Generative AI
Apache License 2.0
23 stars 28 forks source link

Google Gemini - Warning in Log - on MacOS: check_gcp_environment_no_op.cc:29] ALTS: Platforms other than Linux and Windows are not supported #313

Open jwmatthews opened 3 weeks ago

jwmatthews commented 3 weeks ago

Environment: MacOS arm64

While testing #307 I saw below in logs.

Config loaded: KaiConfig(log_level='info', file_log_level='debug', log_dir='$pwd/logs', demo_mode=False, trace_enabled=True, incident_store=KaiConfigIncidentStore(solution_detectors=<SolutionDetectorKind.NAIVE: 'naive'>, solution_producers=<SolutionProducerKind.TEXT_ONLY: 'text_only'>, args=KaiConfigIncidentStorePostgreSQLArgs(provider=<KaiConfigIncidentStoreProvider.POSTGRESQL: 'postgresql'>, host='127.0.0.1', database='kai', user='kai', password='dog8code', connection_string=None, solution_detection=<SolutionDetectorKind.NAIVE: 'naive'>)), models=KaiConfigModels(provider='ChatGoogleGenerativeAI', args={'model': 'gemini-pro'}, template=None, llama_header=None, llm_retries=5, llm_retry_delay=10.0), solution_consumers=[<SolutionConsumerKind.DIFF_ONLY: 'diff_only'>, <SolutionConsumerKind.LLM_SUMMARY: 'llm_summary'>])
Console logging for 'kai' is set to level 'INFO'
File logging for 'kai' is set to level 'DEBUG' writing to file: '/Users/jmatthews/git/jwmatthews/kai/logs/kai_server.log'
INFO - 2024-08-22 06:37:17,362 - kai.service.kai_application.kai_application - [  kai_application.py:54   -             __init__()] - Tracing enabled.

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR

I0000 00:00:1724323037.369571 86266815 check_gcp_environment_no_op.cc:29] ALTS: Platforms other than Linux and Windows are not supported

Assuming that langchain-google-genai==1.0.9 from https://github.com/konveyor/kai/pull/307/files#diff-de469cc9cf8992ffaec661b4e087cfded3ec6da722072ec1fdf11f61690fd1b8R27

Is bringing in a dependency that includes this code: https://github.com/grpc/grpc/blob/master/src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc#L29

Functionality for Google Gemini appears to be working for basic workflow of send a request and get a response. Note, I am NOT seeing cached responses being written to disk, unsure if that could be related to this.

jwmatthews commented 3 weeks ago

I am opening this issue primarily for knowledge sharing, at moment I assume this is NOT an issue we will spend time on to address.