mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 23:03:35 +00:00
docs(ai): Remove old API reference from README
This commit is contained in:
parent
8f4e96f207
commit
c960d36da1
2 changed files with 5 additions and 21 deletions
|
|
@ -4,22 +4,6 @@ Unified LLM API with automatic model discovery, provider configuration, token an
|
|||
|
||||
**Note**: This library only includes models that support tool calling (function calling), as this is essential for agentic workflows.
|
||||
|
||||
## API Changes in v0.5.15+
|
||||
|
||||
The `AssistantMessage` response structure has been updated to support multiple content blocks of different types. Instead of separate fields for `text`, `thinking`, and `toolCalls`, responses now have a unified `content` array that can contain multiple blocks of each type in any order.
|
||||
|
||||
```typescript
|
||||
// Old API (pre-0.5.15)
|
||||
response.text // single text string
|
||||
response.thinking // single thinking string
|
||||
response.toolCalls // array of tool calls
|
||||
|
||||
// New API (0.5.15+)
|
||||
response.content // array of TextContent | ThinkingContent | ToolCall blocks
|
||||
```
|
||||
|
||||
This change allows models to return multiple thinking and text blocks, which is especially useful for complex reasoning tasks.
|
||||
|
||||
## Supported Providers
|
||||
|
||||
- **OpenAI**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue