ragflow/rag/llm
shijiefengjun 632b23486f
Fix the value issue of anthropic (#3351)
### What problem does this PR solve?

This pull request fixes the issue mentioned in
https://github.com/infiniflow/ragflow/issues/3263.

1. response should be parsed as dict, prevent the following code from
failing to take values:
ans = response["content"][0]["text"]
2. API Model ```claude-instant-1.2``` has retired (by
[model-deprecations](https://docs.anthropic.com/en/docs/resources/model-deprecations)),
it will trigger errors in the code, so I deleted it from the
conf/llm_factories.json file and updated the latest API Model
```claude-3-5-sonnet-20241022```



### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: chenhaodong <chenhaodong@ctrlvideo.com>
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2024-11-13 16:13:52 +08:00
..
__init__.py add inputs to display to every components (#3242) 2024-11-06 18:47:53 +08:00
chat_model.py Fix the value issue of anthropic (#3351) 2024-11-13 16:13:52 +08:00
cv_model.py Fix keys of Xinference deployed models, especially has the same model name with public hosted models. (#2832) 2024-10-16 10:21:08 +08:00
embedding_model.py exstract model dir from model‘s full name (#3368) 2024-11-13 14:10:16 +08:00
rerank_model.py exstract model dir from model‘s full name (#3368) 2024-11-13 14:10:16 +08:00
sequence2txt_model.py fix sequence2txt error and usage total token issue (#2961) 2024-10-22 11:38:37 +08:00
tts_model.py support sequence2txt and tts model in Xinference (#2696) 2024-10-08 10:43:18 +08:00