This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the workround before https://github.com/pydantic/pydantic-ai/issues/224 is fixed | |
from pydantic_ai.models.openai import ( | |
OpenAIModel, | |
OpenAIModelSettings, | |
ModelRequestParameters, | |
) | |
from itertools import chain | |
from openai import NOT_GIVEN, AsyncOpenAI, AsyncStream | |
from openai.types import ChatModel, chat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from typing import ( | |
Any, | |
Awaitable, | |
Generator, | |
Generic, | |
Tuple, | |
TypeVar, | |
Union, | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
from typing import Optional | |
def http_once( | |
host: str, | |
port: int, | |
buffer_size: int = 4096, | |
timeout: Optional[float] = None, | |
response: str = "OK", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include tencent-qq.local | |
# Persistent global definitions | |
include globals.local | |
noblacklist ${HOME}/.config/QQ | |
# Allow opening hyperlinks | |
include allow-bin-sh.inc | |
include disable-common.inc |