# Code interpreter to provide changesets

**URL:** <https://community.openai.com/t/code-interpreter-to-provide-changesets/919412>\
**Category:** API\
**Tags:** api, code-interpreter, code, feature-request, assistants-api\
**Created:** [August 23, 2024, 1:34pm UTC](https://community.openai.com/t/code-interpreter-to-provide-changesets/919412 "2024-08-23T13:34:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pahwar](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/pahwar/32/267188_2.png) [@pahwar](https://community.openai.com/u/pahwar)\
**Post date:** [August 23, 2024, 1:34pm UTC](https://community.openai.com/t/code-interpreter-to-provide-changesets/919412/1 "2024-08-23T13:34:10Z")

</div>

Is it possible for the code interpreter to provide an array of changes with file name, from line number, to line number, and comments to incorporate in the assistants API. if not possible currently, I am requesting a feature enhancement for the Code API that allows users to get and also specify `from_line_num` and `end_line_num` parameters when requesting code changes. The API should return the suggested changes for the specified line range, along with the file name, in a structured JSON format. API can request file handles with appropriate folder names in parameters as needed.

For example, json could be like:

```auto
[{
    filename: "src/app/components/login/LoginComponent.ts",
    from_line_num: 20, 
    end_line_num: 30,
    comment: "login adjustments for Microsoft auth",

    code: " const handleGoogleLogin = (response) => {
          const { tokenId } = response;
          // Make API request to your Django backend to log the user in
          fetch('http://localhost:8000/accounts/google/login/', {
              method: 'POST',
              headers: {
                  'Content-Type': 'application/json',
              },
              body: JSON.stringify({ id_token: tokenId }),
          })
          .then(res => res.json())
          .then(data => {
              console.log('Google Login Success: ', data);
              // Handle successful login, store token or user info
          })
          .catch(error => {
              console.error('Google Login Error: ', error);
          });
      };
      
      const handleMicrosoftLogin = async () => {
          // Microsoft login logic is similar...
      }; ",
    },

{...}]

```

---

<div class="post-metadata">

**Author:** ![pahwar](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/pahwar/32/267188_2.png) [@pahwar](https://community.openai.com/u/pahwar)\
**Post date:** [August 29, 2024, 3:17pm UTC](https://community.openai.com/t/code-interpreter-to-provide-changesets/919412/2 "2024-08-29T15:17:16Z")

</div>

Anyone else interested in this, or knows a solution to this?
