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

OSError: [Errno 63] File name too long #13

Open
gianpaj opened this issue Jul 4, 2023 · 15 comments
Open

OSError: [Errno 63] File name too long #13

gianpaj opened this issue Jul 4, 2023 · 15 comments

Comments

@gianpaj
Copy link

gianpaj commented Jul 4, 2023

vue.js 1 to 3

$ python main.py --sourcelang "vue.js 1"  --targetlang "vue.js 3" --sourcedir ../benchmarks/vue1-vue3 --sourceentry "index.html" --model "gpt-3.5-turbo-16k"
◐ Reading vue.js 1 project from directory '/Users/user/gpt-migrate/benchmarks/vue1-vue3', with entrypoint 'index.html'.
◑ Outputting vue.js 3 project to directory '/Users/user/gpt-migrate/benchmarks/flask-nodejs/target'.
Source directory structure:

        ├── favicon-16x16.png
        ├── safari-pinned-tab.svg
        ├── favicon.ico
        ├── index.html
        ├── android-chrome-192x192.png
        ├── apple-touch-icon.png
        ├── renovate.json
        ├── css/
            │   └── all.css
        ├── js/
            │   └── all.js
        ├── 404.html
        ├── README.md
        ├── img/
            │   ├── walnut-logo.svg
            │   ├── walnut-logo-white-background.png
            │   ├── spin.svg
            │   ├── share.svg
            │   └── walnut-logo-white-background view.svg
        ├── channels.js
        ├── android-chrome-512x512.png
        ├── site.webmanifest
        ├── package-lock.json
        ├── package.json
        ├── scripts/
            │   └── check-channels.js
        ├── mstile-150x150.png
        ├── browserconfig.xml
        └── favicon-32x32.png

✅  Creating your environment...
Created Docker environment for vue.js 3 project in directory '/Users/user/gpt-migrate/benchmarks/flask-nodejs/target'.
✅  Identifying external dependencies for index.html...
✅  Identifying internal dependencies for index.html...
✅  Creating migration file for index.html...
Created file_name.ext at /Users/user/gpt-migrate/benchmarks/flask-nodejs/target
Copied renovate.json from /Users/user/gpt-migrate/benchmarks/vue1-vue3 to /Users/gianpaj/tmp/gpt-migrate/benchmarks/flask-nodejs/target
✅  Creating dependencies file required for the Docker environment...
Traceback (most recent call last):

  File "/Users/user//gpt-migrate/gpt_migrate/main.py", line 100, in main
    add_env_files(globals)

  File "/Users/user/gpt-migrate/gpt_migrate/steps/migrate.py", line 91, in add_env_files
    external_deps_name, _, external_deps_content = llm_write_file(prompt,
                                                   ^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/user/gpt-migrate/gpt_migrate/utils.py", line 61, in llm_write_file
    with open(os.path.join(globals.targetdir, file_name), 'w') as file:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

OSError: [Errno 63] File name too long: "/Users/user/gpt-migrate/benchmarks/flask-nodejs/target/PREFERENCE LEVEL 1\n\nHere are the guidelines for this prompt:\n\n1. Follow the output instructions precisely and do not make any assumptions. Your output will not be read by a human; it will be directly input into a computer for literal processing. Adding anything else or deviating from the instructions w
@joshpxyne
Copy link
Owner

Have you made any changes to your version? If not, mind sharing the source repo you're working with?

@gianpaj
Copy link
Author

gianpaj commented Jul 5, 2023

I didn't make any changes to gpt-migrate

Of course, the repo is https://github.com/gianpaj/walnut.tv

@JobberRT
Copy link

JobberRT commented Jul 7, 2023

same here, using a single minified js file as source and golang as target.

@mahmoud
Copy link

mahmoud commented Jul 7, 2023

Ran into this as well. Details:

  • Angular 1 -> SvelteKit
  • Repo: https://github.com/hatnote/montage
  • CLI command: python -m pdb ./main.py --sourcedir ~/hatnote/montage/client --sourcelang angular --targetlang sveltekit --targetdir ../workspace/ --sourceentry src/app.module.js --model gpt-3.5-turbo-16k (-m pdb for CLI debugging)

For some reason, response in ai.AI.write_code is apparently a regurgitation of the prompt.

<OpenAIObject chat.completion id=chatcmpl-7Zn70W4WnNH76XrAifkq4A4tCI5ch at 0x7f313d968d10> JSON: {
  "id": "chatcmpl-7Zn70W4WnNH76XrAifkq4A4tCI5ch",
  "object": "chat.completion",
  "created": 1688764622,
  "model": "gpt-3.5-turbo-16k-0613",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "PREFERENCE LEVEL 1\n\nHere are the guidelines for this prompt:\n\n1. Follow the output instructions precisely and do not make any assumptions. Your output will not be read by a human; it will be directly input into a computer for literal processing. Adding anything else or deviating from the instructions will cause the output to fail.\n2. Think through the answer to each prompt step by step to ensure that the output is perfect; there is no room for error.\n3. Do not use any libraries, frameworks, or projects that are not well-known and well-documented, unless they are explicitly mentioned in the instructions or in the prompt.\n4. In general, use comments in code only sparingly.\n\nPREFERENCE LEVEL 2\n\nYou are a pragmatic principal engineer at Google. You are about to get instructions for code to write. This code must be as simple and easy to understand, while still fully expressing the functionality required. Please note that the code should be complete and fully functional. No placeholders. However, only write what you are asked to write. For instance, if you're asked to write a function, only write the function; DO NOT include import statements. We will do those separately.\n\nPlease strictly follow this styling guideline with no deviations. Variables will always be snake_case; either capital or lowercase. Functions will always be camelCase. Classes will always be PascalCase. Please follow this guideline even if the source code does not follow it.\n\nFinally, please follow these guidelines:\n\nPREFERENCE LEVEL 3\n\nYou are a principal software engineer at Google with particular expertise in Docker environments. Consider the below Dockerfile and create a file for external dependencies. Some languages require a specific directory and/or file name, and to address this in the file for external dependencies. The current directory structure is as follows:\n\n```\n        \u251c\u2500\u2500 Dockerfile\n        \u251c\u2500\u2500 file_name.ext\n        \u2514\u2500\u2500 src/\n                \u2514\u2500\u2500 text/\n                        \u251c\u2500\u2500 en.json\n                        \u2514\u2500\u2500 pl.json\n\n```\n\nIf this will be an issue for sveltekit, please handle for this in the external dependencies file.\n\nDockerfile:\n\n```\nCODE\n```\n\nExternal dependencies:\n\n```\nchart.js\ninfinite-scroll\npascalprecht.translate\nngMaterial\nui.router\nangular-sortable-view\n\n```\n\nPREFERENCE LEVEL 4\n\nWe will be using the output you provide as-is to create new files, so please be precise and do not include any other text. Your output needs to be ONE file; if your output contains multiple files, it will break the system. Your output should consist ONLY of the file name, language, and code, in the following format:\n\nfile_name.ext\n```language\nCODE\n```"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 644,
    "completion_tokens": 547,
    "total_tokens": 1191
  }
}

When I re-ran with a (more-common) target of React, I got the same result.

@Sineos
Copy link

Sineos commented Jul 15, 2023

Seeing the same with model gpt-3.5-turbo-16k on a small Python to Nodejs migration.

@carstarai
Copy link

same issue here. I am using gpt-3,5-turbo-16k too. Any resolution yet?

@MkuuWaUjinga
Copy link
Contributor

I'd advise to switch to GPT-4 if possible. Gpt-3.5-turbo is much weaker at programming (see #18)

@brunolippi
Copy link

GPT-4 is not publicly available for everyone yet, is there another model more suited than gpt-3.5-turbo or any way of fixing this error?

@gianpaj
Copy link
Author

gianpaj commented Aug 2, 2023

GPT-4 is not publicly available for everyone yet, is there another model more suited than gpt-3.5-turbo or any way of fixing this error?

GPT-4 is available to all via the API

https://openai.com/blog/gpt-4-api-general-availability

@Sineos
Copy link

Sineos commented Aug 2, 2023

GPT-4 is available to all via the API

Unfortunately not. Apparently only if you had a paid subscription with at least one billing beforehand. They announced a "general" availability somwhen in August

@gianpaj
Copy link
Author

gianpaj commented Aug 3, 2023

@Sineos the GPT-4 via the API is available to everyone. You have to pay to use the API

I think you're referring to GPT-4 via the ChatGPT website (chat.openai.com). The API docs are here
https://platform.openai.com/docs/api-reference/chat/create

@Sineos
Copy link

Sineos commented Aug 3, 2023

sigh No it is not. In some developer blog it was explicitly mentioned that only paid customers (which I am) must have had at least one billing period to profit from v4 (which I have not).

So a simply call to https://api.openai.com/v1/models yields:

{
  "object": "list",
  "data": [
    {
      "id": "text-davinci-001",
      "object": "model",
      "created": 1649364042,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-CDlahk1RbkghXDjtxqzXoPNo",
          "object": "model_permission",
          "created": 1690913868,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-davinci-001",
      "parent": null
    },
    {
      "id": "text-search-curie-query-001",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-fNgpMH6ZEQulSq1CjzlfQuIe",
          "object": "model_permission",
          "created": 1690864192,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-curie-query-001",
      "parent": null
    },
    {
      "id": "davinci",
      "object": "model",
      "created": 1649359874,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-8s5tCuiXSr3zT00nLwZGyMpS",
          "object": "model_permission",
          "created": 1690930152,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "davinci",
      "parent": null
    },
    {
      "id": "gpt-3.5-turbo-16k-0613",
      "object": "model",
      "created": 1685474247,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-0WUfVWoQgban6U6wF2YQVlq7",
          "object": "model_permission",
          "created": 1690865619,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "gpt-3.5-turbo-16k-0613",
      "parent": null
    },
    {
      "id": "text-babbage-001",
      "object": "model",
      "created": 1649364043,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-YABzYWjC1kS6M2BnI6Fr9vuS",
          "object": "model_permission",
          "created": 1690913878,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-babbage-001",
      "parent": null
    },
    {
      "id": "curie-instruct-beta",
      "object": "model",
      "created": 1649364042,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-4GYfzAdSMcJmQvF7bsw01UWw",
          "object": "model_permission",
          "created": 1690863785,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "curie-instruct-beta",
      "parent": null
    },
    {
      "id": "text-davinci-003",
      "object": "model",
      "created": 1669599635,
      "owned_by": "openai-internal",
      "permission": [
        {
          "id": "modelperm-a6niqBmW2JaGmo0fDO7FEt1n",
          "object": "model_permission",
          "created": 1690930172,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-davinci-003",
      "parent": null
    },
    {
      "id": "davinci-similarity",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-XHJ9P2cvfDAl6Q6NABs6wD7G",
          "object": "model_permission",
          "created": 1690864520,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "davinci-similarity",
      "parent": null
    },
    {
      "id": "code-davinci-edit-001",
      "object": "model",
      "created": 1649880484,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-T8Ie7SvlPyvtsDvPlfC8DftZ",
          "object": "model_permission",
          "created": 1690915089,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "code-davinci-edit-001",
      "parent": null
    },
    {
      "id": "text-similarity-curie-001",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-ZQZGhVQCQSN4WC1wRJsFZfRL",
          "object": "model_permission",
          "created": 1690864230,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-similarity-curie-001",
      "parent": null
    },
    {
      "id": "text-embedding-ada-002",
      "object": "model",
      "created": 1671217299,
      "owned_by": "openai-internal",
      "permission": [
        {
          "id": "modelperm-F3BGCNGb0ChzFesHIYjbNYUX",
          "object": "model_permission",
          "created": 1690865307,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-embedding-ada-002",
      "parent": null
    },
    {
      "id": "ada-code-search-text",
      "object": "model",
      "created": 1651172510,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-jWFKGhnNYXhMIJuYYBe8zKoH",
          "object": "model_permission",
          "created": 1690864242,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "ada-code-search-text",
      "parent": null
    },
    {
      "id": "text-search-ada-query-001",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-YO36k119sJYqPB8yHh737z8l",
          "object": "model_permission",
          "created": 1690864529,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-ada-query-001",
      "parent": null
    },
    {
      "id": "babbage-search-query",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-o5hcKERXLlTSB0nfq8fPkAzK",
          "object": "model_permission",
          "created": 1690864257,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "babbage-search-query",
      "parent": null
    },
    {
      "id": "ada-similarity",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-Tz8CgePTpeDdl0q0mDxAseS4",
          "object": "model_permission",
          "created": 1690864543,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "ada-similarity",
      "parent": null
    },
    {
      "id": "gpt-3.5-turbo",
      "object": "model",
      "created": 1677610602,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-zy5TOjnE2zVaicIcKO9bQDgX",
          "object": "model_permission",
          "created": 1690864883,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "gpt-3.5-turbo",
      "parent": null
    },
    {
      "id": "text-search-ada-doc-001",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-WQoo7GOoaleCrrerQ8ROIejy",
          "object": "model_permission",
          "created": 1690864068,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-ada-doc-001",
      "parent": null
    },
    {
      "id": "text-search-babbage-query-001",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-PHk5XyJIMEk88v14M2eEcJfE",
          "object": "model_permission",
          "created": 1690864079,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-babbage-query-001",
      "parent": null
    },
    {
      "id": "code-search-ada-code-001",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-lPJ8tQWzTuRpZpOjtRN4CjlP",
          "object": "model_permission",
          "created": 1690864269,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "code-search-ada-code-001",
      "parent": null
    },
    {
      "id": "curie-search-document",
      "object": "model",
      "created": 1651172508,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-o3nt5yDhE7FpA8PtMlzGuW3k",
          "object": "model_permission",
          "created": 1690864552,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "curie-search-document",
      "parent": null
    },
    {
      "id": "text-search-davinci-query-001",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-X2U9yi1RKudh1hGQ9CnPth2A",
          "object": "model_permission",
          "created": 1690864090,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-davinci-query-001",
      "parent": null
    },
    {
      "id": "text-search-curie-doc-001",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-7mOkCIwOIehlltLDPM1oSKN7",
          "object": "model_permission",
          "created": 1690864279,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-curie-doc-001",
      "parent": null
    },
    {
      "id": "gpt-3.5-turbo-0301",
      "object": "model",
      "created": 1677649963,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-7WmfQzsq5FJ92UAnn24LduAN",
          "object": "model_permission",
          "created": 1690842565,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "gpt-3.5-turbo-0301",
      "parent": null
    },
    {
      "id": "babbage-search-document",
      "object": "model",
      "created": 1651172510,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-FQiAIZXWHZ4yJl6b4X0JWpfw",
          "object": "model_permission",
          "created": 1690864561,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "babbage-search-document",
      "parent": null
    },
    {
      "id": "babbage-code-search-text",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-9AyTgRlbDLetEnvXKDgJvSvR",
          "object": "model_permission",
          "created": 1690864101,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "babbage-code-search-text",
      "parent": null
    },
    {
      "id": "whisper-1",
      "object": "model",
      "created": 1677532384,
      "owned_by": "openai-internal",
      "permission": [
        {
          "id": "modelperm-3SeXqCXRSTQ4dMIQ10epodAC",
          "object": "model_permission",
          "created": 1690916948,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "whisper-1",
      "parent": null
    },
    {
      "id": "gpt-3.5-turbo-16k",
      "object": "model",
      "created": 1683758102,
      "owned_by": "openai-internal",
      "permission": [
        {
          "id": "modelperm-r2x739b21PqZv0StkJePepPC",
          "object": "model_permission",
          "created": 1690866609,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "gpt-3.5-turbo-16k",
      "parent": null
    },
    {
      "id": "davinci-instruct-beta",
      "object": "model",
      "created": 1649364042,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-ZNpXjNy0lDniBWzpvi6w6wSU",
          "object": "model_permission",
          "created": 1690842588,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "davinci-instruct-beta",
      "parent": null
    },
    {
      "id": "davinci-search-query",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-w5yjX7u1Hgz0jJFhPRB93n6I",
          "object": "model_permission",
          "created": 1690864112,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "davinci-search-query",
      "parent": null
    },
    {
      "id": "text-similarity-babbage-001",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-8p0vOyyD6xVDYv6XOC4EYIin",
          "object": "model_permission",
          "created": 1690864583,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-similarity-babbage-001",
      "parent": null
    },
    {
      "id": "text-davinci-002",
      "object": "model",
      "created": 1649880484,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-Ao62Dd2uu76ec6Koq1ksR2rj",
          "object": "model_permission",
          "created": 1690864376,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-davinci-002",
      "parent": null
    },
    {
      "id": "code-search-babbage-text-001",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-uH251hsudZq0DqxtTcSYFTcD",
          "object": "model_permission",
          "created": 1690864593,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "code-search-babbage-text-001",
      "parent": null
    },
    {
      "id": "babbage",
      "object": "model",
      "created": 1649358449,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-vZIqTaVk4K37PezAFVHAEW3H",
          "object": "model_permission",
          "created": 1690943947,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "babbage",
      "parent": null
    },
    {
      "id": "text-search-davinci-doc-001",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-sqcSr7AYu6WYtzWgysHg1zO4",
          "object": "model_permission",
          "created": 1690864126,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-davinci-doc-001",
      "parent": null
    },
    {
      "id": "code-search-ada-text-001",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-1JbI0GFKw9luPgTJQut1uJNe",
          "object": "model_permission",
          "created": 1690864601,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "code-search-ada-text-001",
      "parent": null
    },
    {
      "id": "ada-search-query",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-cBtmsjrTZIJUKgjS8G6uALKM",
          "object": "model_permission",
          "created": 1690864138,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "ada-search-query",
      "parent": null
    },
    {
      "id": "text-similarity-ada-001",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-fSDlSniO72T5MvD6ieDRue0a",
          "object": "model_permission",
          "created": 1690864457,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-similarity-ada-001",
      "parent": null
    },
    {
      "id": "ada-code-search-code",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-469coJJMBDffmGlbftht9QR7",
          "object": "model_permission",
          "created": 1690864147,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "ada-code-search-code",
      "parent": null
    },
    {
      "id": "ada",
      "object": "model",
      "created": 1649357491,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-mEzQ65zcTNX233nYMXVZjvmy",
          "object": "model_permission",
          "created": 1690950776,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "ada",
      "parent": null
    },
    {
      "id": "text-davinci-edit-001",
      "object": "model",
      "created": 1649809179,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-bwEWUtGiBcdX0p1D1ayafH8w",
          "object": "model_permission",
          "created": 1690915020,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-davinci-edit-001",
      "parent": null
    },
    {
      "id": "davinci-search-document",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-1jEFSTL1yLUnTyI8TekKPGQF",
          "object": "model_permission",
          "created": 1690864158,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "davinci-search-document",
      "parent": null
    },
    {
      "id": "curie-search-query",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-fvYLh7mrZBoEXRa9teCq7ZsK",
          "object": "model_permission",
          "created": 1690864488,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "curie-search-query",
      "parent": null
    },
    {
      "id": "babbage-similarity",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-XBmFjRKu34Qvm9Y8Vjg6si3V",
          "object": "model_permission",
          "created": 1690864610,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "babbage-similarity",
      "parent": null
    },
    {
      "id": "ada-search-document",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-jEtYYVTVutQ4BLh2DnGd9tJt",
          "object": "model_permission",
          "created": 1690864171,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "ada-search-document",
      "parent": null
    },
    {
      "id": "text-ada-001",
      "object": "model",
      "created": 1649364042,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-jRuB7xBCdj159SqaDmpPgeWO",
          "object": "model_permission",
          "created": 1690915029,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-ada-001",
      "parent": null
    },
    {
      "id": "text-similarity-davinci-001",
      "object": "model",
      "created": 1651172505,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-CoAjJ7mSHeO28X7KowOnwvj9",
          "object": "model_permission",
          "created": 1690864500,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-similarity-davinci-001",
      "parent": null
    },
    {
      "id": "curie",
      "object": "model",
      "created": 1649359874,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-0g6LBMO3cgUpTYzehqtF9G1i",
          "object": "model_permission",
          "created": 1690950807,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "curie",
      "parent": null
    },
    {
      "id": "curie-similarity",
      "object": "model",
      "created": 1651172510,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-gSmuEPu9Q8KjQhJ5myLNKIIV",
          "object": "model_permission",
          "created": 1690864620,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "curie-similarity",
      "parent": null
    },
    {
      "id": "gpt-3.5-turbo-0613",
      "object": "model",
      "created": 1686587434,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-XIXH7QF7QM60DDcON9eaGFfk",
          "object": "model_permission",
          "created": 1690842445,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "gpt-3.5-turbo-0613",
      "parent": null
    },
    {
      "id": "babbage-code-search-code",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-UdNutuGVhzb5EBzlkaztBdMH",
          "object": "model_permission",
          "created": 1690864182,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "babbage-code-search-code",
      "parent": null
    },
    {
      "id": "code-search-babbage-code-001",
      "object": "model",
      "created": 1651172507,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-0mO5qmzzKUVVVZ9MIHTnwjwK",
          "object": "model_permission",
          "created": 1690864510,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "code-search-babbage-code-001",
      "parent": null
    },
    {
      "id": "text-search-babbage-doc-001",
      "object": "model",
      "created": 1651172509,
      "owned_by": "openai-dev",
      "permission": [
        {
          "id": "modelperm-dvJNsLdOcnLbIYlRZRnfQAfX",
          "object": "model_permission",
          "created": 1690864628,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": true,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-search-babbage-doc-001",
      "parent": null
    },
    {
      "id": "text-curie-001",
      "object": "model",
      "created": 1649364043,
      "owned_by": "openai",
      "permission": [
        {
          "id": "modelperm-vcuXVPe8oCucYrY0hxBNBXRd",
          "object": "model_permission",
          "created": 1690915039,
          "allow_create_engine": false,
          "allow_sampling": true,
          "allow_logprobs": true,
          "allow_search_indices": false,
          "allow_view": true,
          "allow_fine_tuning": false,
          "organization": "*",
          "group": null,
          "is_blocking": false
        }
      ],
      "root": "text-curie-001",
      "parent": null
    }
  ]
}


As you can see: No v4

@gianpaj
Copy link
Author

gianpaj commented Aug 3, 2023

That's strange. Sorry about that. I assumed the blog post said it was available to all :(

@ivishalanand
Copy link

ivishalanand commented Aug 12, 2023

I am getting the same with model gpt-3.5-turbo-16k on a small Python to Nodejs migration. @0xpayne

@MaurerKrisztian
Copy link

MaurerKrisztian commented Aug 16, 2023

I'm experiencing the same issue with different error code (OSError: [Errno 36] File name too long). I wanted to give it a shot, but I encounter this error with every project. Here's an example:

OS: Ubuntu 22.04 LTS

e.g. project: https://github.com/MaurerKrisztian/Amazon_Book_Scraper

command:

➜  gpt_migrate git:(main) ✗ python main.py --sourcedir ../book-scraper --sourcelang nodejs --targetlang deno --targetdir migrate-out-scraper --model gpt-3.5-turbo-16k
Unable to find the entrypoint file. Please enter it manually. This must be a file relative to the source directory.: app.ts

Last completed step:

✅  Creating dependencies file required for the Docker environment...
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮

error:

OSError: [Errno 36] File name too long: "gpt-migrate/gpt_migrate/migrate-out-scraper/PREFERENCE LEVEL 1\n\nHere are the guidelines for this prompt:\n\n1. Follow the output instructions precisely and do not make any assumptions. Your output will not be read by a human; it 
will be directly input into a computer for literal processing. Adding anything else or deviating from the instructions will cause the output to fail.\n2. Think through the answer to each prompt step by step to ensure that the output is perfect; there is no room for error.\n3. Do not use any libraries, 
frameworks, or projects that are not well-known and well-documented, unless they are explicitly mentioned in the instructions or in the prompt.\n4. In general, use comments in code only sparingly.\n\nPREFERENCE LEVEL 2\n\nYou are a pragmatic principal engineer at Google. You are about to get 
instructions for code to write. This code must be as simple and easy to understand, while still fully expressing the functionality required. Please note that the code should be complete and fully functional. No placeholders. However, only write what you are asked to write. For instance, if you're asked
to write a function, only write the function; DO NOT include import statements. We will do those separately.\n\nPlease strictly follow this styling guideline with no deviations. Variables will always be snake_case; either capital or lowercase. Functions will always be camelCase. Classes will always be 
PascalCase. Please follow this guideline even if the source code does not follow it.\n\nFinally, please follow these guidelines:\n\nPREFERENCE LEVEL 3\n\nYou are a principal software engineer at Google with particular expertise in Docker environments. Consider the below Dockerfile and create a file for
external dependencies. Some languages require a specific directory and/or file name, and to address this in the file for external dependencies. The current directory structure is as follows:\n"

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

10 participants