Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

What key features does the VS Code plugin support for POML development? How to configure the Model API for testing?

2025-08-27 56

POML的VS Code插件提供完整的开发环境支持:

  • 基础编辑功能:语法高亮、标签自动闭合、智能感知(输入<时弹出标签建议)
  • 实时验证:错误波浪线提示(如未闭合标签)、悬停文档说明
  • 预览模式:右侧面板可实时渲染提示词最终效果

模型配置步骤::

  1. 通过菜单栏文件 > 首选项 > 设置Entering the Settings screen
  2. 搜索”POML”找到配置分组
  3. 设置三项核心参数:
    • Model Provider:选择OpenAI/Azure等供应商
    • API Key:输入有效的API密钥
    • Endpoint URL:填写模型服务地址(如OpenAI的https://api.openai.com/v1)
  4. 或直接在settings.json中添加:
    "poml.model.provider": "OpenAI",
    "poml.model.apiKey": "sk-..."

配置完成后即可在编辑器中通过快捷键(通常为Ctrl+Shift+P)调用测试命令。

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish