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

Converter not applied to the prompt before calling openai #3

Open
inderjeetnair opened this issue Nov 24, 2023 · 0 comments
Open

Converter not applied to the prompt before calling openai #3

inderjeetnair opened this issue Nov 24, 2023 · 0 comments

Comments

@inderjeetnair
Copy link

inderjeetnair commented Nov 24, 2023

Hi,
In the code below from the script src/api/query_openai_over_tasks.py :

if task['input_prompt_code'] in cache:
        logging.info(
            f"Task {task_idx} > Using cached result for {task['input_prompt_code']}")
        codex_response = cache[task['input_prompt_code']]["codex_response"]
    else:
        codex_response = query_codex(task, prompt_text, engine, max_tokens=max_tokens)


    completed_code = get_completed_code(task, codex_response)

    graph = converter.python_to_graph(completed_code)

it seems the converter is applied only after the response is generated from the openai. Can you please verify whether this is correct? It seems the prompts are not getting changed when different prompting schemes are applied before calling openai.

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

1 participant