Skip to content

Accept iteratable parameters for chat apis#20

Merged
linmx0130 merged 1 commit intomainfrom
lib-chat-iter
Jul 25, 2025
Merged

Accept iteratable parameters for chat apis#20
linmx0130 merged 1 commit intomainfrom
lib-chat-iter

Conversation

@linmx0130
Copy link
Copy Markdown
Owner

As title.

   messages: &Vec<ChatMessage>,    
   params: &HashMap<String, Value>,

Are changed into

    messages: M,
    params: P,
  where
    P: IntoIterator<Item = (&'a String, &'a Value)>,
    M: IntoIterator<Item = &'b ChatMessage>,

So that we can support more data types as input. As a big change, bump the version of nah_chat to v0.2.0

@linmx0130 linmx0130 merged commit d248a27 into main Jul 25, 2025
1 check passed
@linmx0130 linmx0130 deleted the lib-chat-iter branch July 25, 2025 23:44
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