Skip to content

Commit

Permalink
Updating component docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeLalor authored and github-actions[bot] committed Sep 4, 2024
1 parent 542344c commit 1fd3668
Show file tree
Hide file tree
Showing 15 changed files with 668 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/scripts/docbuilder/schemas/APU/ClaudeSonnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"$ref": "file:../LLMUnit/overview.json",
"default": {
"implementation": "AnthropicLLMUnit",
"model": "claude-3-sonnet-20240229"
"model": "claude-3-5-sonnet-20240620"
}
},
"logic_units": {
Expand Down
111 changes: 111 additions & 0 deletions scripts/scripts/docbuilder/schemas/APU/GPT4o-mini.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"properties": {
"implementation": {
"const": "GPT4o-mini",
"description": "GPT4o-mini"
},
"max_num_function_calls": {
"default": 10,
"description": "The maximum number of function calls to make in a single request.",
"title": "Max Num Function Calls",
"type": "integer"
},
"io_unit": {
"$ref": "file:../IOUnit/overview.json",
"default": {
"implementation": "IOUnit"
}
},
"memory_unit": {
"$ref": "file:../MemoryUnit/overview.json",
"default": {
"implementation": "MemoryUnit"
}
},
"llm_unit": {
"$ref": "file:../LLMUnit/overview.json",
"default": {
"implementation": "OpenAIGPT",
"model": "gpt-4o-mini"
}
},
"logic_units": {
"default": [],
"items": {
"$ref": "file:../LogicUnit/overview.json"
},
"title": "Logic Units",
"type": "array"
},
"audio_unit": {
"anyOf": [
{
"$ref": "file:../AudioUnit/overview.json"
},
{
"type": "null"
}
],
"default": "OpenAiSpeech"
},
"image_unit": {
"anyOf": [
{
"additionalProperties": true,
"properties": {
"implementation": {
"default": "eidolon_ai_sdk.apu.image_unit.ImageUnit",
"title": "Implementation",
"type": "string"
}
},
"reference_pointer": {
"default_impl": "eidolon_ai_sdk.apu.image_unit.ImageUnit",
"type": "ImageUnit"
},
"title": "ImageUnit Reference",
"type": "object"
},
{
"type": "null"
}
],
"default": "OpenAIImageUnit"
},
"record_conversation": {
"default": true,
"title": "Record Conversation",
"type": "boolean"
},
"allow_tool_errors": {
"default": true,
"title": "Allow Tool Errors",
"type": "boolean"
},
"document_processor": {
"$ref": "file:../DocumentProcessor/overview.json",
"default": {
"implementation": "DocumentProcessor"
}
},
"retriever": {
"$ref": "file:../Retriever/overview.json",
"default": {
"implementation": "Retriever"
}
},
"retriever_apu": {
"anyOf": [
{
"$ref": "file:../APU/overview.json"
},
{
"type": "null"
}
],
"default": null
}
},
"title": "GPT4o-mini",
"type": "object"
}
3 changes: 3 additions & 0 deletions scripts/scripts/docbuilder/schemas/APU/overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
{
"$ref": "file:./GPT4o.json"
},
{
"$ref": "file:./GPT4o-mini.json"
},
{
"$ref": "file:./Llamma3-8b.json"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"properties": {
"implementation": {
"const": "claude-3-5-sonnet-20240620",
"description": "claude-3-5-sonnet-20240620"
},
"human_name": {
"title": "Human Name",
"type": "string",
"default": "Claude Sonnet"
},
"name": {
"title": "Name",
"type": "string",
"default": "claude-3-5-sonnet-20240620"
},
"input_context_limit": {
"title": "Input Context Limit",
"type": "integer",
"default": 200000
},
"output_context_limit": {
"title": "Output Context Limit",
"type": "integer",
"default": 8192
},
"supports_tools": {
"title": "Supports Tools",
"type": "boolean",
"default": false
},
"supports_image_input": {
"title": "Supports Image Input",
"type": "boolean",
"default": true
},
"supports_audio_input": {
"title": "Supports Audio Input",
"type": "boolean",
"default": false
}
},
"title": "claude-3-5-sonnet-20240620",
"type": "object"
}
45 changes: 45 additions & 0 deletions scripts/scripts/docbuilder/schemas/LLMModel/gpt-4o-mini.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"properties": {
"implementation": {
"const": "gpt-4o-mini",
"description": "gpt-4o-mini"
},
"human_name": {
"title": "Human Name",
"type": "string",
"default": "GPT-4o-mini"
},
"name": {
"title": "Name",
"type": "string",
"default": "gpt-4o-mini"
},
"input_context_limit": {
"title": "Input Context Limit",
"type": "integer",
"default": 128000
},
"output_context_limit": {
"title": "Output Context Limit",
"type": "integer",
"default": 4096
},
"supports_tools": {
"title": "Supports Tools",
"type": "boolean",
"default": true
},
"supports_image_input": {
"title": "Supports Image Input",
"type": "boolean",
"default": true
},
"supports_audio_input": {
"title": "Supports Audio Input",
"type": "boolean",
"default": false
}
},
"title": "gpt-4o-mini",
"type": "object"
}
2 changes: 1 addition & 1 deletion scripts/scripts/docbuilder/schemas/LLMModel/gpt-4o.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"supports_image_input": {
"title": "Supports Image Input",
"type": "boolean",
"default": false
"default": true
},
"supports_audio_input": {
"title": "Supports Audio Input",
Expand Down
6 changes: 6 additions & 0 deletions scripts/scripts/docbuilder/schemas/LLMModel/overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"title": "LLMModel",
"description": "Overview of LLMModel components",
"anyOf": [
{
"$ref": "file:./claude-3-5-sonnet-20240620.json"
},
{
"$ref": "file:./claude-3-haiku-20240307.json"
},
Expand All @@ -20,6 +23,9 @@
{
"$ref": "file:./gpt-4o.json"
},
{
"$ref": "file:./gpt-4o-mini.json"
},
{
"$ref": "file:./llama3-8b.json"
},
Expand Down
3 changes: 3 additions & 0 deletions webui/apps/docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export default defineConfig({
{label: 'GPT3.5-turbo', link: '/docs/components/apu/gpt3_5-turbo'},
{label: 'GPT4-turbo', link: '/docs/components/apu/gpt4-turbo'},
{label: 'GPT4o', link: '/docs/components/apu/gpt4o'},
{label: 'GPT4o-mini', link: '/docs/components/apu/gpt4o-mini'},
{label: 'Llamma3-8b', link: '/docs/components/apu/llamma3-8b'},
{label: 'MistralLarge', link: '/docs/components/apu/mistrallarge'},
{label: 'MistralMedium', link: '/docs/components/apu/mistralmedium'},
Expand All @@ -159,12 +160,14 @@ export default defineConfig({
{
label: 'LLMModel', collapsed: true, items: [
{label: 'Overview', link: '/docs/components/llmmodel/overview'},
{label: 'claude-3-5-sonnet-20240620', link: '/docs/components/llmmodel/claude-3-5-sonnet-20240620'},
{label: 'claude-3-haiku-20240307', link: '/docs/components/llmmodel/claude-3-haiku-20240307'},
{label: 'claude-3-opus-20240229', link: '/docs/components/llmmodel/claude-3-opus-20240229'},
{label: 'claude-3-sonnet-20240229', link: '/docs/components/llmmodel/claude-3-sonnet-20240229'},
{label: 'gpt-3.5-turbo', link: '/docs/components/llmmodel/gpt-3_5-turbo'},
{label: 'gpt-4-turbo', link: '/docs/components/llmmodel/gpt-4-turbo'},
{label: 'gpt-4o', link: '/docs/components/llmmodel/gpt-4o'},
{label: 'gpt-4o-mini', link: '/docs/components/llmmodel/gpt-4o-mini'},
{label: 'llama3-8b', link: '/docs/components/llmmodel/llama3-8b'},
{label: 'mistral-large-latest', link: '/docs/components/llmmodel/mistral-large-latest'},
{label: 'mistral-medium-latest', link: '/docs/components/llmmodel/mistral-medium-latest'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ This can be overridden to provide custom IO handling.

## <a name="llm_unit"></a>5. Property `llm_unit`

| | |
| -------------- | ----------------------------------------------------------------------------- |
| **Type** | `Reference[LLMUnit]` |
| **Required** | No |
| **Default** | `{"implementation": "AnthropicLLMUnit", "model": "claude-3-sonnet-20240229"}` |
| **Defined in** | [LLMUnit](/docs/components/llmunit/overview) |
| | |
| -------------- | ------------------------------------------------------------------------------- |
| **Type** | `Reference[LLMUnit]` |
| **Required** | No |
| **Default** | `{"implementation": "AnthropicLLMUnit", "model": "claude-3-5-sonnet-20240620"}` |
| **Defined in** | [LLMUnit](/docs/components/llmunit/overview) |

**Description:** Overview of LLMUnit components

Expand Down
Loading

0 comments on commit 1fd3668

Please sign in to comment.