Skip to content

add v1/models && qwen3_coder stream fc#1252

Merged
shihaobai merged 4 commits intomainfrom
openai_models
Apr 2, 2026
Merged

add v1/models && qwen3_coder stream fc#1252
shihaobai merged 4 commits intomainfrom
openai_models

Conversation

@shihaobai
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements the /v1/models endpoint and enables support for multiple choices (n > 1) in streaming chat and completion APIs. Key changes include the addition of a --model_owner CLI argument, the definition of ModelCard and ModelListResponse schemas, and a refactor of the streaming logic to correctly handle choice indices and tool call states. A review comment identifies an unused raw_request parameter in the new get_models endpoint.


@app.get("/v1/models", response_model=ModelListResponse)
@app.post("/v1/models", response_model=ModelListResponse)
async def get_models(raw_request: Request):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The raw_request parameter is unused in the get_models function and can be removed to improve code clarity.

Suggested change
async def get_models(raw_request: Request):
async def get_models():

@shihaobai shihaobai changed the title add v1/models && stream fc add v1/models && qwen3_coder stream fc Apr 2, 2026
@shihaobai shihaobai merged commit 17e373d into main Apr 2, 2026
1 check passed
@shihaobai shihaobai deleted the openai_models branch April 2, 2026 13:09
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.

1 participant