Skip to content

AI: Issues connecting to Blablador #1129

@jen-lgtm

Description

@jen-lgtm

Describe the bug :


I am coding a bunch of interview transcripts. I have built the code book with memos for each category and code. When I try to run an AI code analysis I am getting an error message that reads: File "qualcoder/ai_async_worker.py", line 108, in run

File "qualcoder/ai_llm.py", line 734, in _retrieve_similar_data

File "qualcoder/ai_llm.py", line 705, in generate_code_descriptions

File "langchain_core/language_models/chat_models.py", line 378, in invoke

File "langchain_core/language_models/chat_models.py", line 963, in generate_prompt

File "langchain_core/language_models/chat_models.py", line 782, in generate

File "langchain_core/language_models/chat_models.py", line 1028, in _generate_with_cache

File "langchain_openai/chat_models/base.py", line 1093, in _generate

File "langchain_core/language_models/chat_models.py", line 156, in generate_from_stream

File "langchain_openai/chat_models/base.py", line 1070, in _stream

File "langchain_openai/chat_models/base.py", line 1047, in _stream

File "openai/lib/streaming/chat/_completions.py", line 150, in enter

File "openai/_utils/_utils.py", line 287, in wrapper

File "openai/resources/chat/completions/completions.py", line 1087, in create

File "openai/_base_client.py", line 1256, in post

File "openai/_base_client.py", line 1044, in request

AI Error:
BadRequestError:
To Reproduce :


I went to AI Assisted Coding, Chose a Code and File and get the error. This happens regardless of which Analytic Prompt I use.

Expected behavior :


I expect the system to identify text that fits the code criterion.

Screenshots :

Image

Desktop (please complete the following information):

  • macOS: Sequoia 15.7.2

Additional context :


Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SolvedSolution to problem shown

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions