mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-04 21:53:14 +08:00
参数校验
This commit is contained in:
parent
c389f1a33a
commit
1e2124ff54
@ -184,7 +184,7 @@ class FastChatOpenAILLMChain(RemoteRpcModel, Chain, ABC):
|
|||||||
history = inputs[self.history_key]
|
history = inputs[self.history_key]
|
||||||
streaming = inputs[self.streaming_key]
|
streaming = inputs[self.streaming_key]
|
||||||
prompt = inputs[self.prompt_key]
|
prompt = inputs[self.prompt_key]
|
||||||
stop = inputs['stop']
|
stop = inputs.get("stop", None)
|
||||||
print(f"__call:{prompt}")
|
print(f"__call:{prompt}")
|
||||||
try:
|
try:
|
||||||
|
|
||||||
@ -243,7 +243,6 @@ if __name__ == "__main__":
|
|||||||
chain.call_model_name("gpt-3.5-turbo")
|
chain.call_model_name("gpt-3.5-turbo")
|
||||||
|
|
||||||
answer_result_stream_result = chain({"streaming": False,
|
answer_result_stream_result = chain({"streaming": False,
|
||||||
"stop": "",
|
|
||||||
"prompt": "你好",
|
"prompt": "你好",
|
||||||
"history": []
|
"history": []
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user