Vauth / copilot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Copilot Completions

๐Ÿ— Signup copilot:

First signup for github copilot in order to activate the worker, or (ERROR: Resource not accessible by integration) .

๐Ÿ”— Get access token:

print(GetAccessToken())

Replace the output with ACCESS_TOKEN in main.py .

๐Ÿš€ Run

print(Copilot("Hello world app with python"))

Returns string type output with markdown parse .

๐Ÿ”ฎ Supported models:

Name
gpt-4
gpt-3.5-turbo
text-davinci-003
text-davinci-002
text-davinci-001
text-curie-001
text-babbage-001
text-ada-001
davinci
curie
babbage
ada
code-davinci-002
code-davinci-001
code-cushman-002
code-cushman-001
davinci-codex
cushman-codex
text-davinci-edit-001
code-davinci-edit-001
text-embedding-ada-002
text-similarity-davinci-001
text-similarity-curie-001
text-similarity-babbage-001
text-similarity-ada-001
text-search-davinci-doc-001
text-search-curie-doc-001
text-search-babbage-doc-001
text-search-ada-doc-001
code-search-babbage-code-001
code-search-ada-code-001
gpt2

Replace MODEL with your prefered model in main.py .

About


Languages

Language:Python 100.0%