mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-11 21:30:59 +00:00
feat: update requester config logic
This commit is contained in:
@@ -8,6 +8,7 @@ import base64
|
||||
import anthropic
|
||||
import httpx
|
||||
|
||||
from ....core import app
|
||||
from .. import entities, errors, requester
|
||||
|
||||
from .. import entities, errors
|
||||
@@ -22,6 +23,11 @@ class AnthropicMessages(requester.LLMAPIRequester):
|
||||
|
||||
client: anthropic.AsyncAnthropic
|
||||
|
||||
default_config: dict[str, typing.Any] = {
|
||||
'base-url': 'https://api.anthropic.com/v1',
|
||||
'timeout': 120,
|
||||
}
|
||||
|
||||
async def initialize(self):
|
||||
|
||||
httpx_client = anthropic._base_client.AsyncHttpxClientWrapper(
|
||||
|
||||
Reference in New Issue
Block a user