1.
config.py の 11 行目の API_KEY をこのサイトの独自の KEY に変更します。
2.
config.py の 38 行目の API_URL_REDIRECT 値を {"https://api.openai.com/v1/chat/completions": "https://aigptx.top/v1/chat/completions"}
に変更します。
3.
config.py の 73 行目の AVAIL_LLM_MODELS にモデル「claude-2-web」を追加します。
4.
toolbox.py の 622 行目で、コードを次のように変更します。
「」パイソン
llm_model.startswith('gpt-') または llm_model.startswith('claude-2-w') の場合:
「」
インデントに注意してください
5.
request_llm/bridge_all.py の model_info 変数にキーと値のペアを追加します。
「」パイソン
"クロード-2-ウェブ": {
"fn_with_ui": chatgpt_ui、
"fn_without_ui": chatglm_noui、
「エンドポイント」: openai_endpoint,
"max_token": 8196、
「トークナイザー」: tokenizer_gpt35,
"token_cnt": get_token_num_gpt35,
}
「」
その後、claude2 モデルを使用できます。 Web で claude-2-web を選択して使用します。