Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
morph_lib.ai
# π¦ Package: morph_lib.ai.openai.code_generation # π οΈ Function: text_to_matplotlib def text_to_matplotlib( prompt: str, api_key: str, table_names: List[str], model: Optional[str] = "gpt-4o", ) -> TextConversionResponse:
# π¦ Package: morph_lib.ai.anthropic.code_generation # π οΈ Function: text_to_matplotlib def text_to_matplotlib( prompt: str, api_key: str, table_names: List[str], model: Optional[str] = "claude-3-5-haiku-latest", max_tokens: Optional[int] = 1024, ) -> TextConversionResponse:
# π¦ Package: morph_lib.ai.azure.code_generation # π οΈ Function: text_to_matplotlib def text_to_matplotlib( prompt: str, api_key: str, table_names: List[str], azure_endpoint: str, deployment_name: Optional[str] = "gpt4", api_version: Optional[str] = "2024-10-01-preview", ) -> TextConversionResponse:
# π¦ Package: morph_lib.ai.groq.code_generation # π οΈ Function: text_to_matplotlib def text_to_matplotlib( prompt: str, api_key: str, table_names: List[str], model: Optional[str] = "llama-3.1-70b-versatile", ) -> TextConversionResponse:
from morph_lib.ai.openai import text_to_matplotlib import os @morph.func def func_name(context): fig = text_to_matplotlib( prompt, os.environ["OPENAI_API_KEY"], ["user"], "gpt-4o", ) code = fig.code print(code) return fig.content