# Integrate Llama or openAI with VScode to use it as github copilot

**URL:** <https://discuss.huggingface.co/t/integrate-llama-or-openai-with-vscode-to-use-it-as-github-copilot/96384>\
**Category:** Beginners\
**Created:** [July 9, 2024, 10:28am UTC](https://discuss.huggingface.co/t/integrate-llama-or-openai-with-vscode-to-use-it-as-github-copilot/96384 "2024-07-09T10:28:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prachhu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/prachhu/32/29149_2.png) [@Prachhu](https://discuss.huggingface.co/u/Prachhu)\
**Post date:** [July 9, 2024, 10:28am UTC](https://discuss.huggingface.co/t/integrate-llama-or-openai-with-vscode-to-use-it-as-github-copilot/96384/1 "2024-07-09T10:28:23Z")

</div>

Tried with OPENAI integration but it does not work.

You tried to access openai.Completion, but this is no longer supported in openai\>=1.0.0 - see the README at [GitHub - openai/openai-python: The official Python library for the OpenAI API](https://github.com/openai/openai-python) for the API.

A detailed migration guide is available here:

> **[v1.0.0 Migration Guide · openai/openai-python · Discussion #742](https://github.com/openai/openai-python/discussions/742)**
>
> We have released a new major version of our SDK, and we recommend upgrading promptly. It's a total rewrite of the library, so many things have changed, but we've made upgrading easy with a code mig...

With upgraded openAI also I am facing API usage crossed. But that is not true , sicne i am able to use chatgpt still

The `openai.RateLimitError: Error code: 429`

My main goal is to integrate any LLM model with my IDE for better code experience. I pay each month for chatgpt already and dont want to spend anymore.
