ragflow/rag
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
..
app Rework logging (#3358) 2024-11-12 17:35:13 +08:00
llm Fix the value issue of anthropic (#3351) 2024-11-13 16:13:52 +08:00
nlp Refine english synonym (#3371) 2024-11-13 12:58:37 +08:00
res Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
svr Rework logging (#3358) 2024-11-12 17:35:13 +08:00
utils mv service_conf.yaml to conf/ and fix: add 'answer' as a parameter to 'generate' (#3379) 2024-11-13 15:56:40 +08:00
__init__.py build python version rag-flow (#21) 2024-01-15 08:46:22 +08:00
benchmark.py mv service_conf.yaml to conf/ and fix: add 'answer' as a parameter to 'generate' (#3379) 2024-11-13 15:56:40 +08:00
raptor.py Rework logging (#3358) 2024-11-12 17:35:13 +08:00
settings.py Rework logging (#3358) 2024-11-12 17:35:13 +08:00