Closed lpb1 closed 3 weeks ago
openai v1/completion api
from openai import OpenAI client = OpenAI( base_url='https://xxxx/v1', api_key='sk-xxxx' ) response = client.completions.create( model="gpt4o", prompt="I am a ", ) print(response)
For IDE code assistant plugins, these use the v1/completion endpoint for code autocompletion.
my bad, I find the implementation in code...
🚀 Feature
openai v1/completion api
Motivation
For IDE code assistant plugins, these use the v1/completion endpoint for code autocompletion.