fix(main.py): route openai calls to /completion when text_completion is True

This commit is contained in:
Krrish Dholakia 2024-06-19 12:36:43 -07:00
parent 93c5625dc6
commit 9cc104eb03
3 changed files with 149 additions and 93 deletions

View file

@ -1576,6 +1576,7 @@ class OpenAITextCompletion(BaseLLM):
response = openai_client.completions.create(**data) # type: ignore
response_json = response.model_dump()
## LOGGING
logging_obj.post_call(
input=prompt,