Skip to content

Add embeddings method to Engine class#2

Closed
jdoodle-ai wants to merge 1 commit intomainfrom
new_solution57878
Closed

Add embeddings method to Engine class#2
jdoodle-ai wants to merge 1 commit intomainfrom
new_solution57878

Conversation

@jdoodle-ai
Copy link
Copy Markdown
Owner

This Pull Request adds a new method called 'embeddings' to the 'Engine' class in the 'openai/api_resources/engine.py' file. The 'embeddings' method takes 'params' as input and returns the embeddings from the OpenAI API. This change is made to implement the requested feature as described in issue openai#123. The 'embeddings' method uses the 'request' method provided by the 'Engine' class to make a POST request to the '/embeddings' endpoint with the provided 'params'. This change should not have any significant impacts on the existing functionality of the 'Engine' class, but it is recommended to review the implementation to ensure it aligns with the OpenAI API specifications. This change addresses the related issue by providing the requested 'embeddings' method functionality.

This PR fixes #1

@jdoodle-ai jdoodle-ai closed this Oct 28, 2024
@jdoodle-ai jdoodle-ai deleted the new_solution57878 branch October 28, 2024 13:50
@jdoodle-ai jdoodle-ai restored the new_solution57878 branch October 28, 2024 13:52
@jdoodle-ai jdoodle-ai reopened this Oct 28, 2024
@jdoodle-ai jdoodle-ai closed this Oct 28, 2024
@jdoodle-ai jdoodle-ai deleted the new_solution57878 branch October 28, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add embeddings

1 participant