Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Open AI API Maturity #973

Closed

Description

@Jack-Khuu

🚀 The feature, motivation and pitch

The OpenAI API support in torchchat is actively in development and will be one of the main entry point for interacting with torchchat

https://github.com/pytorch/torchchat?tab=readme-ov-file#server

Alternatives

No response

Additional context

No response

RFC (Optional)

No response

Activity

  1. added
    Known GapsThese are known Gaps/Issues/Bug items in torchchat
    on Jul 30, 2024
  2. vmpuri commented on Aug 2, 2024

    @vmpuri
    Contributor

    PR 995 addresses some initial concerns. Responses should now be formatted in JSON using the API dataclasses. Here are our functional gaps so far:

    • system_fingerprint/seed implementation is incomplete. We need to figure out a good way to create and consume fingerprints from seeds. For now, the client cannot control reproducibility of the responses.
    • model cannot be selected by the client. The model is selected when starting the server and cannot be changed without exiting the process. The server does not check to ensure the request/response models match
    • Agentic behavior/toolcall functionality is unimplemented. We will focus on getting chat right first, then create entrypoints for tool usecases.

    Behavior Issues

  3. ywang96 commented on Aug 4, 2024

    @ywang96

    Hello there! I'm curious if supporting OpenAI Vision API is also something you're interested in since it looks like the team does plan to support vision language models from the discussion in #988

    If you do, happy to help!

  4. linked a pull request that will close this issueOpenAI API JSON formatted #995on Aug 6, 2024
  5. linked a pull request that will close this issueOpenai api models endpoint #1000on Aug 6, 2024
  6. vmpuri commented on Aug 6, 2024

    @vmpuri
    Contributor

    Hey Roger, thanks for reaching out! We do plan on adding LLaVA support in the coming weeks, and we'd appreciate your help on the API/server components.

    I'm still working on bringing the initial version of the API and server up to spec, but I'll keep this issue updated with my progress.

  7. vmpuri commented on Aug 19, 2024

    @vmpuri
    Contributor

    Landed pulls #1035 #1034 #1042 which prove that the basic completion API works as expected with the Python OpenAI API.

  8. added
    enhancementNew feature or request
    triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
    on Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known GapsThese are known Gaps/Issues/Bug items in torchchatenhancementNew feature or requesttriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions