Skip to content

Commit 9de5f4e

Browse files
authored
Merge pull request #200 from kagent-dev/adb-models
Remove modelInfo
2 parents d741b08 + a44d0ef commit 9de5f4e

File tree

7 files changed

+10
-150
lines changed

7 files changed

+10
-150
lines changed

src/app/docs/kagent/resources/api-ref/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ _Appears in:_
285285
| `modelConfig` _string_ | The name of the model config to use.<br />If not specified, the default value is "default-model-config".<br />Must be in the same namespace as the Agent. | | |
286286
| `stream` _boolean_ | Whether to stream the response from the model.<br />If not specified, the default value is true. | | |
287287
| `tools` _[Tool](#tool) array_ | | | MaxItems: 20 <br /> |
288-
| `a2aConfig` _[A2AConfig](#a2aconfig)_ | A2AConfig instantiates an A2A server for this agent,<br />served on the HTTP port of the kagent kubernetes<br />controller (default 8083).<br />The A2A server URL will be served at<br /><kagent-controller-ip>:8083/api/a2a/<agent-namespace>/<agent-name><br />Read more about the A2A protocol here: https://github.com/google/A2A | | |
288+
| `a2aConfig` _[A2AConfig](#a2aconfig)_ | A2AConfig instantiates an A2A server for this agent,<br />served on the HTTP port of the kagent kubernetes<br />controller (default 8083).<br />The A2A server URL will be served at<br />&lt;kagent-controller-ip&gt;:8083/api/a2a/&lt;agent-namespace&gt;/&lt;agent-name&gt;<br />Read more about the A2A protocol here: https://github.com/google/A2A | | |
289289
| `deployment` _[DeclarativeDeploymentSpec](#declarativedeploymentspec)_ | | | |
290290

291291

src/app/docs/kagent/resources/release-notes/page.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,12 @@ spec:
396396

397397
The secret name field is renamed from `apiKeySecret` to `apiKeySecret`.
398398

399+
### ModelInfo removed
400+
401+
The `modelInfo` setting is removed from the ModelConfig API.
402+
403+
Supported LLM providers are pre-configured by the [kagent-dev/autogen project fork](https://github.com/kagent-dev/autogen/tree/main/python/packages/autogen-ext/src/autogen_ext/models) for you by default. Trying to override these default settings, such as to enable vision for image recognition, could cause unexpected behavior in models that do not support these settings. Therefore, the `modelInfo` field is removed.
404+
399405
## Memory API
400406

401407
The Memory API is not supported in ADK. The [agent development kit](https://google.github.io/adk-docs/) is required to bring your own agents. As such, the Memory docs are removed.

src/app/docs/kagent/supported-providers/anthropic/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ spec:
3636
anthropic: {}
3737
```
3838
39-
For Anthropic's Claude models, kagent automatically configures the appropriate model capabilities, including vision support for Claude-3 models. You can override these settings using the `modelInfo` field if needed. For more information about model capabilities and configuration, see [Custom Models](/docs/kagent/supported-providers/custom-models).
39+
For Anthropic's Claude models, kagent automatically configures the appropriate model capabilities, including vision support for Claude-3 models.
4040
4141
3. Apply the above resource to the cluster.
4242

src/app/docs/kagent/supported-providers/azure-openai/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
azureAdToken: <azure_ad_token_value>
4040
```
4141
42-
For Azure OpenAI's standard models, kagent automatically configures the appropriate model capabilities. However, you can override these settings using the `modelInfo` field if needed. For more information about model capabilities and configuration, see [Custom Models](/docs/kagent/supported-providers/custom-models).
42+
For Azure OpenAI's standard models, kagent automatically configures the appropriate model capabilities.
4343
4444
3. Apply the above resource to the cluster.
4545

src/app/docs/kagent/supported-providers/custom-models/page.mdx

Lines changed: 0 additions & 136 deletions
This file was deleted.

src/app/docs/kagent/supported-providers/ollama/page.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,4 @@ spec:
8484
provider: Ollama
8585
ollama:
8686
host: http://ollama.ollama.svc.cluster.local
87-
# Required: Specify model capabilities
88-
modelInfo:
89-
vision: false
90-
functionCalling: true
91-
jsonOutput: true
92-
family: "unknown"
93-
structuredOutput: true
94-
multipleSystemMessages: false
9587
```
96-
97-
Since Ollama supports various models with different capabilities, you must specify the model's capabilities using the `modelInfo` field. For detailed information about model capabilities and how to configure them, see [Custom Models](/docs/kagent/supported-providers/custom-models). Make sure to set `functionCalling: true` if your model supports it, as this is required for using tools with the agent.

src/app/docs/kagent/supported-providers/openai/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
openAI: {}
3636
```
3737
38-
For OpenAI's standard models like GPT-4 and GPT-3.5, kagent automatically configures the appropriate model capabilities. However, you can override these settings using the `modelInfo` field if needed. For more information about model capabilities and configuration, see [Custom Models](/docs/kagent/supported-providers/custom-models).
38+
For OpenAI's standard models like GPT-4 and GPT-3.5, kagent automatically configures the appropriate model capabilities.
3939
4040
3. Apply the above resource to the cluster.
4141

0 commit comments

Comments
 (0)