()
| 118 | |
| 119 | |
| 120 | async def test_embedding(): |
| 121 | logger.info(f"| --------------------------------------------------") |
| 122 | logger.info(f"| Testing embedding with different models") |
| 123 | models = [ |
| 124 | # "openai/text-embedding-3-small", |
| 125 | "openai/text-embedding-3-large", |
| 126 | # "openai/text-embedding-ada-002", |
| 127 | ] |
| 128 | |
| 129 | messages = [ |
| 130 | SystemMessage(content="You are a helpful assistant."), |
| 131 | HumanMessage(content=[ |
| 132 | ContentPartText(text="Please embed the text and provide the embedding."), |
| 133 | ContentPartText(text="The text is: The quick brown fox jumps over the lazy dog."), |
| 134 | ]), |
| 135 | ] |
| 136 | |
| 137 | for model in models: |
| 138 | logger.info(f"| Testing {model}") |
| 139 | response = await model_manager(model=model, messages=messages) |
| 140 | logger.info(f"| {model} Response: {json.dumps(response.model_dump(), indent=4)}") |
| 141 | logger.info(f"| --------------------------------------------------") |
| 142 | |
| 143 | async def test_video(): |
| 144 | logger.info(f"| --------------------------------------------------") |
nothing calls this directly
no test coverage detected