Skip to content

Conversation

locnguyen1986
Copy link
Contributor

Conversation Flows Modifications:

  • Structure the flow for non-stream and stream
  • Save function call and tool call for conversation loadings
  • Simplify parsing logic so we can reuse in Responses APi

type ExtendedChatCompletionRequest struct {
openai.ChatCompletionRequest
Conversation string `json:"conversation,omitempty"`
Conversation string `json:"conversation,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

ConversationID?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it's conversation id.

Copy link
Collaborator

Choose a reason for hiding this comment

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

rename it to conversation id?

Copy link
Collaborator

@jjchen01 jjchen01 left a comment

Choose a reason for hiding this comment

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

We will have to refactor the /chat/completions endpoint.

  • Seperate the logic of building response to a factory or jquery-like builder
  • Unnecessary validation leads to functions with too many arguments.

Merge it and integrate with the client for now.

@locnguyen1986 locnguyen1986 merged commit 0a02b82 into main Sep 18, 2025
1 check passed
@locnguyen1986 locnguyen1986 deleted the feat/conversation-functions branch September 18, 2025 09:00
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.

2 participants