Skip to content

Commit

Permalink
CD-159 - add conversation_id
Browse files Browse the repository at this point in the history
  • Loading branch information
rmontoya12 committed Nov 19, 2024
1 parent 5958032 commit 3baa5c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fastchat/serve/api_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def get_api_provider_stream_iter(
messages=messages,
api_base=model_api_dict["api_base"],
api_key=model_api_dict["api_key"],
conversation_id=state.conv_id,
)
else:
raise NotImplementedError()
Expand Down Expand Up @@ -1279,6 +1280,7 @@ def jab_api_stream_iter(
messages,
api_base,
api_key,
conversation_id
):
import requests

Expand All @@ -1291,6 +1293,7 @@ def jab_api_stream_iter(
payload = {
"model": model_name,
"messages": text_messages,
"conversation_id": conversation_id,
}

logger.info(f"==== request ====\n{payload}")
Expand Down

0 comments on commit 3baa5c4

Please sign in to comment.