Max Zhang

Results 11 comments of Max Zhang

明白,我的意思是否sdk提供默认的实现,跟java实现一样,如果需要我想可以贡献一个

Action中测试环境Docker go版本 小于 1.16 导致, 此提交编译不过 , 忘解决

看这两个解决,另外多看看后端日志,你这个问题是没有导入断言对象导致的,都需要自己修改启动文件 https://github.com/YMFE/yapi/issues/2543 https://github.com/YMFE/yapi/issues/2357

I want to design a framework, preset some interfaces and implementations, and then let users add their own implementations of these interfaces. Then there is still such a need for...

Whether it can replace the old type with the new type. In your code at (c *Container) Provide function , "if c.exists(k) ... panicf() " .

例子: 实现了两个tools , 1. 是查询当天的天气 , 2. 是问现在的时间 上下文如下: {'role': 'user', 'content': '今天北京的天气'} {'role': 'assistant', 'content': '今天北京的天气晴朗,温度为24.94°C,湿度低至15%,风速约为5.38米/秒。这样的好天气非常适合外出活动呢!'} {'role': 'user', 'content': '现在的时间是?'} {'role': 'assistant', 'content': '现在的时间是 **[当前时间]**。请查收。'} 但是如果清空messages , 单独问, tools是正常执行的...

两个tools 的demo 如下 ```python @register_tool('weather') class GetWeather(BaseTool): description = '返回今天输入城市的天气情况,必须与天气相关城市才有意义,城市名要以市结尾,如北京市,上海市,广州市等' parameters = [{ 'name': 'city', 'type': 'string', 'description': '天气所在的城市,如北京市,上海市,广州市等', 'required': True }] def call(self, params: Union[str, dict], **kwargs) -> str:...

你们说的 system , 是指 role = assistant 的吗

> > 你们说的 system , 是指 role = assistant 的吗 > > role=system, content=You are a helpful assistant.,这是默认值 这个不是写在Assistant 的 system_message 里吗