Skip to content

Commit

Permalink
fix: 修复【模型设置】使用应用baseurl创建模型报错
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Sep 20, 2024
1 parent 75430ee commit ac14447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/handle/impl/response/openai_to_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def to_block_response(self, chat_id, chat_record_id, content, is_end, completion
prompt_tokens=prompt_tokens,
total_tokens=completion_tokens + prompt_tokens)
).dict()
return JsonResponse(data=data, status=status)
return JsonResponse(data=data, status=_status)

def to_stream_chunk_response(self, chat_id, chat_record_id, content, is_end, completion_tokens, prompt_tokens):
chunk = ChatCompletionChunk(id=chat_record_id, model='', object='chat.completion.chunk',
Expand Down

0 comments on commit ac14447

Please sign in to comment.